
-----------------------------------
Naveg
Wed Feb 23, 2005 9:25 pm

Get real number from textfield input
-----------------------------------
How do I get real number input from a textfield? Is there a way to change the type of data for the field?

-----------------------------------
Bacchus
Wed Feb 23, 2005 9:28 pm


-----------------------------------
y not just use intreal() ? or strreal() ? watever one u need lol

-----------------------------------
Flikerator
Thu Feb 24, 2005 4:33 pm


-----------------------------------
Our teacher told us to do that and he didn't teach us about intreal() and strreal() lolz. Oh geese he was a cracker.

-----------------------------------
xHoly-Divinity
Thu Feb 24, 2005 4:40 pm


-----------------------------------
well all you have to do is use turing help :P . Basically lets say you have two variables
a : int
b : string
lets say a = 10 all you have to do is go
b := intstr (a)
b is now equal to a (or you can do it viceversa or real to string etc.)

-----------------------------------
Cervantes
Thu Feb 24, 2005 7:15 pm


-----------------------------------
Also of use are the strintok() and strrealok() functions, just to make sure your program won't eat itself when the user enters something stpud like "zr7" as an integer.
