Description
Method; assigns the specified iterator to this DataSet object and makes it the current iterator. The
specified iterator must come from a previous call to
object to which it is being assigned; otherwise; a
Example
myIterator:ValueListIterator = myDataSet.getIterator();
myIterator.sortOn(["name"]);
myDataSet.setIterator(myIterator);
See also
DataSet.getIterator()
DataSet.setRange()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.setRange(startValues, endValues)
Parameters
startValues
An array of key values of the properties of the last transfer object in the range.
endValues
Returns
Nothing.
Description
Method; sets the end points for the current iterator. The end points define a range in which the
iterator operates. This is only valid if a valid sort has been set for the current iterator by means of
DataSet.applyUpdates()
Setting a range for the current iterator is more efficient than using a filter function if you want a
grouping of values (see
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");
An array of key values of the properties of the first transfer object in the range.
.
DataSet.filterFunc
DataSet.getIterator()
exception is thrown.
DataSetError
).
DataSet component (Flash Professional only)
on the DataSet
347
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers