Maptitude GISDK Help

GetRecordCount()

Summary

Gets the number of records in a view or selection set.

 

Syntax

record_count = GetRecordCount(string view_name, string set_name)

 

Argument

Contents

view_name

The name of the view

set_name

The name of the selection set, or null to count all records in the view

 

Returns

An integer indicating the number of records in the view or selection set.

 

Notes

Example

//Open BDOCUMENTS\CALIPER\\< product name>\TUTORIAL\NElayers.wrkz

tutorial_folder = RunMacro("G30 Tutorial Folder")

wrkz = OpenWorkspace(tutorial_folder + "NElayers.wrkz")

nrec = GetRecordCount("Place", "Selection")

ShowMessage("There are " + String(nrec) + " places selected .")

 

Error Codes

Error Type

Meaning

NotFound

The specified view or set does not exist, or the view_name is null and there is no current view.

 

See Also

Function

Summary

GetRecords()

Gets an array of record handles for a selection set

GetSetCount()

Gets the number of records in a set in the current view

IsMember()

Tests whether a record is a member of a selection set.

 

 

©2025 Caliper Corporation www.caliper.com