|
-
Jul 22nd, 2007, 07:55 AM
#1
Thread Starter
Member
how to incrment a string
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
-
Jul 22nd, 2007, 08:28 AM
#2
Re: how to incrment a string
-
Jul 22nd, 2007, 09:03 AM
#3
Hyperactive Member
Re: how to incrment a string
-
Jul 22nd, 2007, 10:00 AM
#4
Re: how to incrment a string
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.
-
Jul 22nd, 2007, 08:28 PM
#5
Re: how to incrment a string
i use something like str = Chr(Asc(str) += 1)
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
|