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