Probably the Easiest String Question Ever
Posted on 2007-11-20
Ok, I'm using a streamreader to read pretty long lines of text. What I want to do is say get specific parts of the line and put them into variables. For example:
dim firstname as string
dim lastname as string.
firstname = Strsub(stringname, 1, 20) -- where "1" is where it starts and "20" is the length.
lastname = strsub(stringname, 21, 40) -- where "21" is where it starts and "40" is the length.
I'm sure this is really simple but the book I have doesn't make it clear.