User Guide
348 Chapter 6: Components Dictionary
See also
DataSet.applyUpdates()
, DataSet.hasNext(), DataSet.next(), DataSet.removeRange(),
DataSet.removeSort()
DataSet.skip()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.skip(offSet)
Parameters
offSet
An integer specifying the number of records by which to move the iterator position.
Returns
Nothing.
Description
Method; moves the current iterator’s position forward or backward in the collection by the
amount specified by
offSet. Positive offSet values move the iterator’s position forward; negative
values move it backward.
If the specified offset is beyond the beginning (or end) of the collection, the iterator is positioned
at the beginning (or end) of the collection.
Example
This example positions the current iterator at the first item in the collection, then moves to the
next-to-last item and performs a calculation on a field belonging to that item.
myDataSet.first();
// Move to the item just before the last one
var itemsToSkip = myDataSet.length - 2;
myDataSet.skip(itemsToSkip).price = myDataSet.amount * 10;
DataSet.useSort()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.useSort(sortName, order)