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:
Dim str As String = "This is a test"
Dim c() As Char
c = str.ToCharArray
Array.Reverse(c)
Messagebox.Show(Cstr(c))
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:
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.
Re: Please Help Create A VB6 to .NET Function Conversion Chart [Completed]
THe code shown for Oct is converting to base 16 (hex)...
Bill
Re: Please Help Create A VB6 to .NET Function Conversion Chart [Completed]