Computer Science Canada

Get real number from textfield input

Author:  Naveg [ Wed Feb 23, 2005 9:25 pm ]
Post subject:  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?

Author:  Bacchus [ Wed Feb 23, 2005 9:28 pm ]
Post subject: 

y not just use intreal() ? or strreal() ? watever one u need lol

Author:  Flikerator [ Thu Feb 24, 2005 4:33 pm ]
Post subject: 

Our teacher told us to do that and he didn't teach us about intreal() and strreal() lolz. Oh geese he was a cracker.

Author:  xHoly-Divinity [ Thu Feb 24, 2005 4:40 pm ]
Post subject: 

well all you have to do is use turing help Razz . 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.)

Author:  Cervantes [ Thu Feb 24, 2005 7:15 pm ]
Post subject: 

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.


: