Text format vb

Started by
2 comments, last by Leadorn 20 years, 10 months ago
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.
Advertisement
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
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
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 ]

::evolve::

Do NOT let Dr. Mario touch your genitals. He is not a real doctor!

-eldee;another space monkey;[ Forced Evolution Studios ]

This topic is closed to new replies.

Advertisement