User Guide

342 Chapter 6: Components Dictionary
}
myDataSet.removeRange();
myDataSet.removeSort("name_id");
See also
DataSet.applyUpdates()
, DataSet.hasNext(), DataSet.next(), DataSet.removeSort(),
DataSet.setRange()
DataSet.removeSort()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.removeSort(sortName)
Parameters
sortName
A string that specifies the name of the sort to remove.
Returns
Nothing.
Description
Method; removes the specified sort from this DataSet object if the sort exists. If the specified sort
does not exist, this method throws a
DataSetError exception.
Example
myDataSet.addSort("name_id", ["name", "id"]);
myDataSet.setRange(["Bobby", 105],["Cathy", 110]);
while(myDataSet.hasNext()) {
myDataSet.gradeLevel ="5"; // change all of the grades in this range
myDataSet.next();
}
myDataSet.removeRange();
myDataSet.removeSort("name_id");
See also
DataSet.applyUpdates()
, DataSet.hasNext(), DataSet.next(), DataSet.removeRange(),
DataSet.setRange()