DataObject.GetVarFormat

Prototypes

String GetVarFormat( String sVarName )

Return Value

The return value is a reference to a String object containing the SAS format associated with the specified variable in the DataObject. If no format is associated with the specified variable, the returned string is empty.

Parameters

String sVarName
The name of the variable whose format you want to retrieve.

Remarks

This method returns the SAS format associated with the specified variable.

Example
declare DataObject dobj;
dobj = DataObject.Create( "Sample" );
x = { 1.1 2.5 3.52 54.728 97.82 };
dobj.AddVar( "X", x );
dobj.SetVarFormat( "X", "BEST8." );
f = dobj.GetVarFormat( "X" );
print f;
See Also

DataObject.SetVarFormat