DataObject.IsExistingVar

Prototypes

boolean IsExistingVar( String sVarName )

Return Value

If a variable with the specified name exists in the DataObject, the return value is true. Otherwise, the return value is false.

Parameters

String sVarName
A variable name.

Remarks

Use this method to determine whether a variable with the specified name exists in the DataObject.

Example
declare DataObject dobj;
dobj = DataObject.CreateFromFile( "baseball" );
if dobj.IsExistingVar( "salary" ) then
    print "Variable exists"; 
else
    print "Variable does not exist";