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

Username:   Password: 
 RegisterRegister   
 String or Int?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Paul




PostPosted: Tue Feb 10, 2004 5:07 pm   Post subject: String or Int?

Does anyone know a easy way to check if a variable value is a string or int?
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: Tue Feb 10, 2004 5:34 pm   Post subject: (No subject)

use strintok

Ex.
code:

var num:string

put "input a string: "
get num

if strintok(num) then
put "is a nummber"
else
put "is a string"
end if
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Paul




PostPosted: Tue Feb 10, 2004 5:42 pm   Post subject: (No subject)

Thanks for your help, with that I guess there's no need for a intstrok or strrealok. Laughing
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  [ 3 Posts ]
Jump to:   


Style:  
Search: