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

RecordSet.addItem( ) Method > RecordSet.addItem( ) Method

Name

RecordSet.addItem( ) Method

Synopsis

                     myRecordSet.addItem(record)

Arguments

record

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

Description

The addItem( ) method is the easiest way to add a new record to a RecordSet object. The record is simply appended to the end of the recordset.

Example

The following code creates a recordset and adds one row to it using the addItem( ) method. The argument for addItem( ) is a generic object with properties that match the fields of the recordset:

#include "RecordSet.as"
var myRecordset_rs = new RecordSet(["First", "Last", "Email"]);
myRecordset_rs.addItem({First:"Tom", Last:"Muck", Email:"tom@tom-muck.com"});

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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