Results 1 to 6 of 6

Thread: Chr/Asc equivalents

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Mexico City
    Posts
    242

    Chr/Asc equivalents

    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.
    Live your own life, for you will die your own death.

  2. #2
    Tygur
    Guest
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Mexico City
    Posts
    242
    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.
    Live your own life, for you will die your own death.

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I think you need

    System.Char
    and
    System.Char.ToString(chrvalue)

    maybe..

    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    Tygur
    Guest
    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.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Mexico City
    Posts
    242
    Cander, I don't think that's what I need, but thanks for trying
    Live your own life, for you will die your own death.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width