Maptitude GISDK Help

FindOption()

Summary

Finds an option and its setting in an array of name-value pairs.

 

Syntax

option = FindOption(array options, string option_name)

 

Argument Contents
options An array of name-value pairs
option_name The name of the option being sought in the array

 

Returns

An array that contains the location of the desired option in the list of options, and the complete entry from that list.

 

Element Type Contents
1 Integer An index (n) into the options array
2 Array The corresponding element of the options array

 

Notes

Example

// Here's a typical option array...

opts = {     {"Color", ColorRGB(0,0,0)},

          {"Line Width", 4.5},

          {"Priority", "-Population"}

          }

// To locate a particular option:

opt = FindOption(opts, "Line Width")

 

// opt is now equal to {2, {"Line Width", 4.5}}

 

See Also

Function Summary
FindOptionValue() Finds the value of a particular option in an options array

 

 

©2025 Caliper Corporation www.caliper.com