DataObject.IsNumeric

Prototypes

boolean IsNumeric( String sVarName )

Return Value

If the variable is a numeric variable, the return value is true. If the variable is a character variable, the return value is false.

Parameters

String sVarName
The name of the variable whose data type you want to query.

Remarks

Use this method to determine the data type of a variable.

Example
declare DataObject dobj;
dobj = DataObject.Create( "Sample" );
x = 1:5;
dobj.AddVar( "SomeVar", x );
if dobj.IsNumeric( "SomeVar" ) then
    print "Numeric"; 
else
    print "Character"; 
See Also

DataObject.IsNominal