Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

CustomColumn countOptions

From Catglobe Wiki
Revision as of 10:26, 23 December 2011 by Cg van (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



CustomColumn_countOptions

Returns the number of custom column options for the custom column passed as argument to the method.

Syntax

CustomColumn_countOptions(customColumn)

Arguments

customColumn: is an array. This is the custom column array created by CustomColumn_new function.

Return type

Number

Examples

array customColumn = CustomColumn_new(CUSTOM_COLUMN_TYPE_NUMBER, "AgeGroup");

number countOptions = CustomColumn_countOptions(customColumn);

print(countOptions); //Result: 0

array customColumnOption_Kid = CustomColumnOption_new("Age < 15", 1, "Kid");

CustomColumn_addOption(customColumn, customColumnOption_Kid );

countOptions = CustomColumn_countOptions(customColumn);

print(countOptions); //Result: 1

Availability

Version 5.5