Maptitude GISDK Help

AddRecord()

Summary

Adds a record to a table and sets the current record.

 

Syntax

record_handle = AddRecord(string view_name, array values)

 

Argument

Contents

view_name

The name of the view containing the table

values

An array of name-value pairs that contain field names and values

 

Returns

The record handle (string) for the new record.

 

Notes

Example

rh = AddRecord("Employees", {

     {"LNAME", "Smith"},

     {"FNAME", "Peter"},

     {"PAYRATE", 10.75},

     {"YOB", 1948}

     })

 

Error Codes

Error Type

Meaning

Error

Invalid values in the values array; the input view does not allow addition of new records (e.g., some types of joined views and aggregate views, ODBC tables); or error writing to file (e.g., a required file is read-only, or there is not enough disk space.)

NotFound

The specified view, or some of the specified fields, does not exist

 

See Also

Function

Summary

AddRecords()

Adds one or more records to a table and sets the current record

DeleteRecord()

Deletes a record from a view

GetRecordValues()

Reads the values of one or more fields for a record in a view

SetRecordValues()

Updates the data for a record in a view

 

 

©2025 Caliper Corporation www.caliper.com