Text format vb
Hi
If i have some text lets say "Kill leadorn for pleasure" if i only want to print leadorn from this text who would I do that?
Visual basic, VBSCRIP.
Look up Mid()
In this case the proper statement would be
Dim TheText As String, TheWord As String
TheText = "Kill leadorn for pleasure"
TheWord = Mid(TheText, 6, 7)
Qui fut tout, et qui ne fut rien
Invader''s Realm
In this case the proper statement would be
Dim TheText As String, TheWord As String
TheText = "Kill leadorn for pleasure"
TheWord = Mid(TheText, 6, 7)
Qui fut tout, et qui ne fut rien
Invader''s Realm
and if you look for a special word in a string, use instr()
I dont know the parameters exactly, just look into the help.
Maxi
I dont know the parameters exactly, just look into the help.
Maxi
dim position as integer
position = instr(1, mystring, "findme") + len("findme") + 1
msgbox mid(mystring, position, len("findme") - position)
-eldee
;another space monkey;
[ Forced Evolution Studios ]
position = instr(1, mystring, "findme") + len("findme") + 1
msgbox mid(mystring, position, len("findme") - position)
-eldee
;another space monkey;
[ Forced Evolution Studios ]
Do NOT let Dr. Mario touch your genitals. He is not a real doctor!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement