• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

RecordSet.addItemAt( ) Method > RecordSet.addItemAt( ) Method

Name

RecordSet.addItemAt( ) Method

Synopsis

                     myRecordSet.addItemAt(index, record)

Arguments

index

An integer from 0 to the length of the recordset minus one.

record

An object with properties that match the fields of the existing RecordSet object.

Description

The addItemAt( ) method inserts a record at a specified location by passing an index number to the recordset along with the record being inserted. It differs from addItem( ) in that the record need not be appended to the end of the recordset but rather can be inserted at any valid index.

Example

The following code creates a RecordSet object, adds two rows using the addItem( ) method, then adds another row using addItemAt( ):


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint