Jay1b Posted September 12, 2003 Posted September 12, 2003 I was having trouble with the tostring command earlier - until i found a better way of doing what i was trying to do - anyway i couldnt get it working. Am I right in thinking its used like this?: Integer.ToString(String) Quote
Illusion Posted September 12, 2003 Posted September 12, 2003 try tempvar =convert.tostring(yourinteger) Quote
*Experts* Nerseus Posted September 12, 2003 *Experts* Posted September 12, 2003 What are you trying to do, Jay1b? If you have an int and want to format it, use this: Dim i As Integer i = 123 Dim s As String = i.ToString("n00") There are various codes you can pass to ToString, depending on how you want the formatting. If you have a string and you're trying to convert to an int, then try this: Dim s As String = "123"Dim i As Integer Dim i As Integer = Convert.ToInt32(s) -Ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Jay1b Posted September 12, 2003 Author Posted September 12, 2003 Thanks. I was going to use as a small part of my code, but i found another way of doing about 20 lines of code in 1 line - so i used that :) Quote
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.