hi elliot i have the same feeling about strings and integers but forgot the details wasnt it the string class or was it the integer class that did the magic trick ? for sur it wasnt the applet class , i dont know where to look either but if i remembered coorectly it was at the sun side or maybe at the oracle site because in the newspaper was something vague about sun and oracle well i will have a joint now maybe my memory will come back soon bye for now. hmm wasnt it an enum ? public enum YesNo { y, n }
Answers & Comments
Verified answer
You can do number2Str = number.ToString()
or
number2Str = Convert.ToString(number)
There are several ways to do this but these are two fairly common ones.
Vb.net Cast
hi elliot i have the same feeling about strings and integers but forgot the details wasnt it the string class or was it the integer class that did the magic trick ? for sur it wasnt the applet class , i dont know where to look either but if i remembered coorectly it was at the sun side or maybe at the oracle site because in the newspaper was something vague about sun and oracle well i will have a joint now maybe my memory will come back soon bye for now. hmm wasnt it an enum ? public enum YesNo { y, n }
Couldn't you just do this:
Dim number as integer = 1000
Dim number2str as string
number2str = number
Print number.ToString()
will print the string "1000".
string s = number.ToString()
will make s "1000".
don't forget cstr(number)