DataObject.GetVarInformat

Prototypes

String GetVarInformat( String sVarName )

Return Value

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

Parameters

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

Remarks

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

Example
declare DataObject dobj;
dobj = DataObject.Create( "Sample" );
dates = StringToDate( "01Jan2001" );
dobj.AddVar( "Date", dates );
dobj.SetVarFormat( "Date", "DATE9." );
dobj.SetVarInformat( "Date", "DATE9." );
inf = dobj.GetVarInformat( "Date" );
print inf;
DataTable.Create( dobj ).ActivateWindow();
See Also

DataObject.SetVarInformat