boolean IsNumeric( String sVarName )
If the variable is a numeric variable, the return value is true. If the variable is a character variable, the return value is false.
String sVarName
The name of the variable whose data type you want to query.
Use this method to determine the data type of a variable.
declare DataObject dobj;
dobj = DataObject.Create( "Sample" );
x = 1:5;
dobj.AddVar( "SomeVar", x );
if dobj.IsNumeric( "SomeVar" ) then
print "Numeric";
else
print "Character";