String or Int?
Author |
Message |
Paul

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

|
|
 |
Dan

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

|
Posted: 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.  |
|
|
|
|
 |
|
|