DisplayBox.GetSelected

Availability

Flash Player 7.

Usage

DisplayBox.GetSelected([ColumnID],[isSelected])

Parameters

ColumnID Optional; The ID of the column header you want the values for returned. Passing a ColumnID of sIDX will return the internal ID of the selected line and passing a value of sID will return the actual display position in the DisplayBox. default: sIDX

isSelected Optional; True if you want to return the items that are selected or false if you want the unselected ones. default: true

Returns

Array of the requested data.

Description

Function; Returns an array of all the selected or unselected items based on the isSelected parameter.

Example

In this example we will return all the selected items for the DisplayBox and store the results in an array.

var myArray=new Array();
var cnt:Number;
myArray=myDisplayBox.GetSelected("sIDX");
for (cnt=0;cnt<myArray.length;cnt++)
{
  //loop thru all the selected items and do something
  DoSomethingWith(myArray[cnt]);
}

Author

Telsim, Inc.