DataObject.SetVarFormat

Prototypes

void SetVarFormat( String sVarName, String sFormat )

Parameters

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

String sFormat
The format you want to associate with the variable. The sFormat parameter must be a valid SAS format. To specify that the variable should have no format, pass "" for this parameter.

Remarks

This method associates a SAS format with a 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", "6.3" );
DataTable.Create( dobj ).ActivateWindow();
See Also

DataObject.GetVarFormat