Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Get real number from textfield input
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Naveg




PostPosted: 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
Sponsor
sponsor
Bacchus




PostPosted: Wed Feb 23, 2005 9:28 pm   Post subject: (No subject)

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




PostPosted: 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




PostPosted: Thu Feb 24, 2005 4:40 pm   Post subject: (No 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.)
Cervantes




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: