|
-
May 2nd, 2007, 03:10 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Grabbing consecutive parts of a string of unknown length
Hi all,
I'm using VB6, just wondering how to grab characters consecutively out of a string (of unknown length), for modification?
For example, this string must be at least 5 characters long and less than 100.
So, a textbox takes in the string. I then want to pick each part in sequence and act on it, e.g.
String1.char = keyascii+1
loop (until end of string)
Do something else
So the string
ABCDE
in this example would become
BCDEF
Just as example. I'm sure there's an easy way to do it but I'm just not sure how - any ideas?
Thanks,
Arby.
p.s. I'm not asking how to change the keyascii, just the part about grabbing bits of the string
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|