hi there
is it possibe with a string like str="a" to increment it
for example if str=str+1 , i have str="b"
thank you
Printable View
hi there
is it possibe with a string like str="a" to increment it
for example if str=str+1 , i have str="b"
thank you
Hi there,
Have a look at this thread:
http://vbforums.com/showthread.php?t...ighlight=aa+ab
use the += operator
You cannot increment a string because there's nothing numeric about a string. In some languages you can increment a character data type because they are stored as numbers, but that's not the case in .NET. The Char type is NOT a numeric type so it cannot be incremented. You can call Convert.ToInt32, then increment, then call Convert.ToChar.
i use something like str = Chr(Asc(str) += 1)