Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fantastically simple question

Status
Not open for further replies.

eveCalypso

Programmer
Apr 29, 2003
134
GB
Hello All,

I am really sorry to ask you this as it is so easy and obvious in other languages, but not in VB (well for me :) )
and the helpfile is not helping either.

I have used the Instr function to ascertain positions of substrings I was looking for, no problem, however, I would like to select a substring now...
how do I get a substring of a string?

If myVar is a String variable,
I can not do myvar(pos1,pos2) and I can also not see any related functions.

Can anyone help me out of my misery please ;-)
Thanks Much
EvE
 
Oh brilliant thanks.
Sorry, but it was not intuitive for me to lookup/use Mid - it means something completely different to me!

Best Rgds,
EvE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top