| Maptitude GISDK Help |
Sets the current record of a view.
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. |
If the input record_handle is invalid, SetRecord() sets the current record to be null, i.e., the view has no current record.
// Save the current record
curr_rec = GetRecord()
// Change it
oldest = GetFirstRecord("Customers", {{"Age", "Descending"}}, )
// Set it back again
SetRecord("Customers", curr_rec)
| Error Type | Meaning |
|---|---|
| NotFound | The view does not exist |
| 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 |