|
-
Sep 18th, 2002, 08:27 AM
#1
Thread Starter
Member
VB.NET equivelent of chr$() and asc() ?
Like the various uses of 'myString.substring' are used in vb.net instead of the old vb6 left, right and mid. Can someone tell me the vb.net version of, for example: chr$(34) and asc("Z"), thanks.
I don't want to use the above, or bring in the vb namespace, I'd like to find the proper vb.net way of doing them.
Thanks
-
Sep 18th, 2002, 07:59 PM
#2
Fanatic Member
you can use chr$ but just drop the $ so it is simple
-
Sep 19th, 2002, 07:41 AM
#3
Thread Starter
Member
I know.
What I meant was I wanted the .NET equivelent. If I'm learning .NET then I'd rather use all the .NET syntax/commands where appropiate.
Anyway, I found out how to do it:
VB6 - Chr$(34)
VB.NET - Convert.ToChar(34)
VB6 - Asc("Z")
VB.NET - Convert.ToByte("Z"c)
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
|