techmanbd Posted April 22, 2005 Posted April 22, 2005 I was wondering what is the preferred or better method in .NET for type conversions? this way ? dim intNumber as integer textbox1.text = intNumber.toString OR? textbox1.text = Cstr(intNumber) Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
Administrators PlausiblyDamp Posted April 22, 2005 Administrators Posted April 22, 2005 I would personally go for the first option as it's not VB specific but common to all .Net languages, gives more control over the output and can be used with formating of the output without having to use a seperate function (Format rather than CStr). Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
michael_hk Posted April 23, 2005 Posted April 23, 2005 You may take a look at here. Quote There is no spoon. <<The Matrix>>
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.