Author |
Message |
Naveg
|
Posted: 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? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Bacchus

|
Posted: Wed Feb 23, 2005 9:28 pm Post subject: (No subject) |
|
|
y not just use intreal() ? or strreal() ? watever one u need lol |
|
|
|
|
 |
Flikerator
|
Posted: Thu Feb 24, 2005 4:33 pm Post subject: (No 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. |
|
|
|
|
 |
xHoly-Divinity
|
Posted: Thu Feb 24, 2005 4:40 pm Post subject: (No subject) |
|
|
well all you have to do is use turing help . 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

|
Posted: Thu Feb 24, 2005 7:15 pm Post subject: (No 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. |
|
|
|
|
 |
|