RecordSet.getItemID(index)
| Parameter |
Description |
|---|---|
| index |
The index number of the record. |
A unique identification (ID) corresponding to the record, at the specified index. Returns null if the index is out of range.
Method. Returns a unique ID corresponding to the record, at the specified index. The RecordSet object assigns each record a unique ID. The ID is not part of the record; it is a separate item that is associated with the record internally within the RecordSet object. Unlike a record index, its ID will not change when the RecordSet object is sorted or when records are added or deleted. When a record is deleted, its ID is retired and will never be used again in this RecordSet object. Also, the ID is used by the ListBox object to maintain the end user's selection when the RecordSet object changes.
The following example retrieves a record ID from a RecordSet object:
#include "NetServices.as"
var productList =new RecordSet(["ProductName","Price","Color"]);
productList.addItem({ProductName :"Spoon",Price :77,Color :"0x987654"});
var recordID =productList.getItemID(0);
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/asDict33.htm