Maptitude GISDK Help

SampleValues()

Summary

Samples the values of the specified field and returns the specified number of unique values.

 

Syntax

vals = SampleValues(string field_spec, integer num_unique, integer num_scanned, array options)

 

Argument

Contents

field_spec

A field spec

num_unique

Number of unique values to return

num_scanned

Maximum number of records to scan; 1000 is used if num_scanned is greater than 1000

 

No options are currently supported.

 

Returns

An array of unique values.

 

Notes

Example

Vals = SampleValues("Population", 20, 200,)

 

Error Codes

Error Type

Meaning

Error

The input field specification is ambiguous

Escape

The user clicked Cancel

NotFound

The input field does not exist

 

See Also

Function

Summary

GetFieldValues()

Reads the values of one or more fields in any number of views

GetRecordValues()

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

 

 

©2025 Caliper Corporation www.caliper.com