DataObject.SetLocalSelectionMode

Prototypes

void SetLocalSelectionMode( <boolean bLocal> )

Parameters

boolean bLocal
If bLocal is true, the DataObject is switched to Local Selection Mode. If bLocal is false, the DataObject is switched to Global Selection Mode. Calling this method without specifying the bLocal parameter is equivalent to calling it with bLocal equal to true.

Remarks

This method switches the DataObject between Global Selection Mode and Local Selection Mode. If you call this method and the requested mode is already active, the call has no effect.

Example
declare DataObject dobj;
dobj = DataObject.CreateFromFile( "business" );
dobj.SetLocalSelectionMode();
declare BarChart NationChart;
NationChart = BarChart.Create( dobj, "Nation", false );
NationChart.SetWindowPosition( 50, 0, 50, 50 );
NationChart.ActivateWindow();
declare BarChart IndustryChart;
IndustryChart = BarChart.Create( dobj, "Industry", false );
IndustryChart.SetWindowPosition( 50, 50, 50, 50 );
IndustryChart.ActivateWindow();
run DoMessageBoxOK( "Prompt",
    "Select a nation and an industry and press ALT+F5." ); 
pause "nodialog:";
dobj.GetVarSelectedData( "Company", companies, true );
print companies;