Page 3 of 3 FirstFirst 123
Results 81 to 84 of 84

Thread: Please Help Create A VB6 to .NET Function Conversion Chart [Completed]

  1. #81
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: Please Help Create A VB6 to .NET Function Conversion Chart [Completed]

    Just came across this method to reverse a string. It's a bit better than using a loop.

    VB Code:
    1. Dim str As String = "This is a test"
    2. Dim c() As Char
    3.  
    4. c = str.ToCharArray
    5. Array.Reverse(c)
    6. Messagebox.Show(Cstr(c))
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

  2. #82

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: Please Help Create A VB6 to .NET Function Conversion Chart [Completed]

    If it didn't take so many lines I might do it, but the most compact I can get it is:
    VB Code:
    1. Dim C() As Char = Array.Reverse(MyString.ToCharArray) : MyString = Convert.ToString(C)

    I guess I could list that, but it seems a little too complex. It isn't as straight forward as the other things.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  3. #83
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: Please Help Create A VB6 to .NET Function Conversion Chart [Completed]

    THe code shown for Oct is converting to base 16 (hex)...

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  4. #84

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: Please Help Create A VB6 to .NET Function Conversion Chart [Completed]

    Oh. Thank you.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

Page 3 of 3 FirstFirst 123

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