RecordSet.getNumberAvailable

Availability

Usage

RecordSet.getNumberAvailable()

Parameters

None.

Return value

An integer between zero and the total size of the record set, inclusive.

Description

Method. Returns the number of records that have been downloaded from the server. The count does not include records that have been requested but not yet arrived. For local RecordSet objects, this will always return the same value as the getLength method.

Example

The following example function uses the getNumberAvailable method:

#include "NetServices.as"
function reportDownloadStatus(aRecordSet)
{
  trace(aRecordSet.getNumberAvailable()+ "of " + aRecordSet.getLength() + "records have been downloaded.");
}

See also

RecordSet.getLength, RecordSet.isFullyPopulated, RecordSet.isLocal

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/asDict35.htm