Click to See Complete Forum and Search --> : Chr/Asc equivalents
gxpark
May 14th, 2002, 11:59 AM
Hi,
What are the equivalents of the Chr/Asc functions in the .NET Framework? I know they're inside Microsoft.VisualBasic, but I'm sure there must be a way to do it without using that namespace.
Thanks in advance.
Tygur
May 14th, 2002, 02:58 PM
Why are you avoiding Microsoft.VisualBasic? I notice that a lot. It's a part of the VB.NET programming language. The only namespace that you really are supposed to be avoiding is Microsoft.VisualBasic.Compatibility, for reasons that should be obvious.
gxpark
May 14th, 2002, 03:34 PM
Because that way I can keep compatibility between different implementations of the .NET Framework (using only the System.* namespaces), like the one being developed for Linux.
Cander
May 14th, 2002, 03:42 PM
I think you need
System.Char
and
System.Char.ToString(chrvalue)
maybe.. :p
Beecause Tygur, most all that VB stuff is elsewhere in the framework and why add another reference when you can do it with 1 less reference?
Plus as gxpark said, it is less likely to be supported by Mono or any other .NET port.
Tygur
May 14th, 2002, 04:11 PM
Originally posted by Cander
Beecause Tygur, most all that VB stuff is elsewhere in the framework and why add another reference when you can do it with 1 less reference?
It is my understanding that the extra reference doesn't hurt anything.
Originally posted by Cander
Plus as gxpark said, it is less likely to be supported by Mono or any other .NET port.
This point makes sense, though.
gxpark
May 15th, 2002, 11:36 AM
Cander, I don't think that's what I need, but thanks for trying :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.