Computer Science Canada

String or Int?

Author:  Paul [ 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?

Author:  Dan [ Tue Feb 10, 2004 5:34 pm ]
Post 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

Author:  Paul [ Tue Feb 10, 2004 5:42 pm ]
Post subject: 

Thanks for your help, with that I guess there's no need for a intstrok or strrealok. Laughing


: