DataObject.ModifyVarValueOrderFlags

Prototypes

void ModifyVarValueOrderFlags( String sVarName, int nClearFlags, int nSetFlags )

Parameters

String sVarName
The name of the variable whose custom ordering flags you want to modify.

int nClearFlags
The custom ordering flags you want to clear. To specify multiple flags, use the addition operator (+) to add them together.

int nSetFlags
The custom ordering flags you want to set. To specify multiple flags, use the addition operator (+) to add them together.

Remarks

This method modifies the custom ordering flags for a variable. The flags are modified in the following manner:

Flags = (Flags & ~nClearFlags) | nSetFlags

where '&' is the bitwise AND operator, '~' is the one's complement operator, and '|' is the bitwise OR operator.

For information about the custom ordering flags and custom ordering in general, see DataObject.SetVarValueOrder.

Example
declare DataObject dobj;
x = { "Low", "Medium", "Medium", "High", "High", "HIGH" };
dobj = DataObject.Create( "Example", "X", x );
values = { "Low", "Medium", "High", "HIGH" };
dobj.SetVarValueOrder( "X", values );
dobj.ModifyVarValueOrderFlags( "X", 0, VVO_CASESENSITIVE );
BarChart.Create( dobj, "X" );
See Also

DataObject.DeleteVarValueOrder
DataObject.EnableVarValueOrder
DataObject.GetVarValueOrderFlags
DataObject.IsVarValueOrderEnabled
DataObject.SetVarValueOrder