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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Bacchus
![](http://img104.exs.cx/img104/9206/ravenmoon12ns.jpg)
|
Posted: Wed Feb 23, 2005 9:28 pm Post subject: (No subject) |
|
|
y not just use intreal() ? or strreal() ? watever one u need lol |
|
|
|
|
![](images/spacer.gif) |
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. |
|
|
|
|
![](images/spacer.gif) |
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.) |
|
|
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
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. |
|
|
|
|
![](images/spacer.gif) |
|