Parameters
A string that contains the name of the sort to use.
sortName
An integer value that indicates the sort order for the sort; the value must be
order
DataSetIterator.Ascending
Returns
Nothing.
Description
Method; switches the sort for the current iterator to the one specified by
the specified sort does not exist, a
To create a sort, use
Example
This code uses
DataSet.hasSort()
the code calls
DataSet.useSort()
creates a sort by that name using
if(myDataSet.hasSort("customer")) {
myDataSet.useSort("customer");
} else {
myDataSet.addSort("customer", ["customer"], DataSetIterator.Descending);
}
See also
DataSet.applyUpdates()
or
DataSetIterator.Descending.
DataSetError
DataSet.applyUpdates()
to determine if a sort named
to make
DataSet.addSort()
,
DataSet.hasSort()
exception is thrown.
.
"customer"
the current sort. Otherwise, the code
"customer"
.
DataSet component (Flash Professional only)
, if it exists. If
sortName
exists. If it does,
349
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?