Need help : Converting strings into int values
Author |
Message |
Bakon
|
Posted: Wed Apr 27, 2005 8:34 am Post subject: Need help : Converting strings into int values |
|
|
Alright, so Im trying to convert string input, into integer values. Im using the GUI.CreateTextField function to gather the information from the user of the program, but when you instert integer values such as "5" or "100", when then rpogram runs and displays the values inserted it seems to be showing the values in integervaleus of string, so like something like "180004", how can I convert these values into regular integer values, so when I type 5, it displays 5.
I think something to do with strint, and intstr?
thanks |
|
|
|
|
|
Sponsor Sponsor
|
|
|
jamonathin
|
Posted: Wed Apr 27, 2005 8:50 am Post subject: (No subject) |
|
|
This is straight from the help file (because I've never used this function)
If you want the text to be int, change text : string to text : int. Or, are you trying to take the number value from the string (such as the numbers from an adress)? |
|
|
|
|
|
Bakon
|
Posted: Wed Apr 27, 2005 8:55 am Post subject: (No subject) |
|
|
Ya I tried changed text : string, into text : int but it didnt work But thanks Ill mess around with that. |
|
|
|
|
|
|
|