Maptitude GISDK Help

SetRecord()

Summary

Sets the current record of a view.

 

Syntax

SetRecord(string view_name, string record_handle)

 

Argument

Contents

view_name

The view whose current record is set.

record_handle

The new current record; if null, SetRecord() sets the view to have no current record.

 

Notes

Example

// Save the current record

curr_rec = GetRecord()

// Change it

oldest = GetFirstRecord("Customers", {{"Age", "Descending"}}, )

// Set it back again

SetRecord("Customers", curr_rec)

 

Error Codes

Error Type

Meaning

NotFound

The view does not exist

 

See Also

Function

Summary

GetFirstRecord()

Finds the first record in a view or selection set based on a sort order

LocateRecord()

Locates a record based on the value of a field

GetRecord()

Gets the record handle of the current record of a view.

 

 

©2025 Caliper Corporation www.caliper.com