Difference between revisions of "CustomColumn optionExists"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
Line 1: Line 1:
[[Category:HelpBooks]]
+
[[Category:Data cache modifying CGScript functions]]
 

 

  

Revision as of 05:22, 29 March 2011



CustomColumn_optionExists

Returns true if the given custom column contains custom column options matching the value passed as argument to the method and false otherwise.

Syntax

CustomColumn_optionExists(customColumn, value)

Arguments

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

value: Is an expression of the same type as the specified custom column.

Return type

bool

Examples

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

customColumn[CUSTOM_COLUMN_TEXT] = "Age groups";

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

CustomColumn_addOption(customColumn, customColumnOption_Kid );

bool b = CustomColumn_optionExists(customColumn, 1); //true

Availability

Version 5.5