M
Michael Ramey
Hello,
There are quite a few ways to convert one object, say an integer to a
string.
Dim myStr as string
dim myInt as integer = 123
myStr = cstr(myInt)
myStr = myInt.toString()
myStr = CType(myInt, String)
or use DirectCast()
What is the preferred, fastest way? Any way I shouldn't be using because it
could be deprecated?
Thanks,
--Michael
There are quite a few ways to convert one object, say an integer to a
string.
Dim myStr as string
dim myInt as integer = 123
myStr = cstr(myInt)
myStr = myInt.toString()
myStr = CType(myInt, String)
or use DirectCast()
What is the preferred, fastest way? Any way I shouldn't be using because it
could be deprecated?
Thanks,
--Michael