Maptitude GISDK Help

DeleteRecordsInSet()

Summary

Deletes all of the records in a selection set from a view.

 

Syntax

DeleteRecordsInSet(string set_name)

 

Argument Contents
set_name The name of the selection set

 

Notes

Example

folder = RunMacro("G30 Tutorial Folder")

CopyFile(folder + "manheats.dbf", folder + "manheats2.dbf")

view = OpenTable("manheats", "DBASE", {folder + "manheats2.dbf"}, {{"Shared", "True"}})

SetView(view)

american = CreateSet("American")

n = SelectByQuery(american, "Several", "Select * where CUISINE = 'AMERICAN'")

if n > 0 then DeleteRecordsInSet(american)

 

Error Codes

Error Type Meaning
Error The set name is invalid or the records could not be deleted
NotFound The set does not exist or is empty

 

See Also

Function Summary
DeleteRecord() Deletes a record from a view
DeleteSet() Deletes a set from the current view

 

 

©2025 Caliper Corporation www.caliper.com