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.

DCS columnNameInUse: Difference between revisions

From Catglobe Wiki
jrfconvert import
 
Cg van (talk | contribs)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
{{HelpFiles}}



====DCS_columnNameInUse====
==== DCS_columnNameInUse ====


Returns true if any column in the current DCS context exists with the name passed as argument to the function, and false otherwise.
Returns true if any column in the current DCS context exists with the name passed as argument to the function, and false otherwise.  


'''Syntax'''
'''Syntax'''  


DCS_columnNameInUse(''name'')
DCS_columnNameInUse(''name'')  


'''Arguments'''
'''Arguments'''  


''name'': Is a string expression. It is name of the DCS column to look up.
''name'': Is a string expression. It is name of the DCS column to look up.  


'''Return type'''
'''Return type'''  


bool
bool  


'''Examples'''
'''Examples'''  


bool exist = DCS_columNameInUse("existingColumn");
''string customClumnName = "Satisfaction_counselor";''


'''Availability'''
''bool exist = DCS_columnNameInUse(customClumnName); ''


Version 5.5
''if (exist) print("Custom column \"" + customClumnName + "\" existed.");''
__NOTOC__
 
<!-- imported from file: 5221.htm-->
''else print("Custom column \"" + customClumnName + "\" does not exist.");''
 
''//Result: Custom column "Satisfaction_counselor" existed.''
 
'''Availability'''
 
Version 5.5 __NOTOC__ <!-- imported from file: 5221.htm-->  
 
[[Category:Data_cache_modifying_CGScript_functions]]

Latest revision as of 11:20, 23 December 2011


DCS_columnNameInUse

Returns true if any column in the current DCS context exists with the name passed as argument to the function, and false otherwise.

Syntax

DCS_columnNameInUse(name)

Arguments

name: Is a string expression. It is name of the DCS column to look up.

Return type

bool

Examples

string customClumnName = "Satisfaction_counselor";

bool exist = DCS_columnNameInUse(customClumnName);

if (exist) print("Custom column \"" + customClumnName + "\" existed.");

else print("Custom column \"" + customClumnName + "\" does not exist.");

//Result: Custom column "Satisfaction_counselor" existed.

Availability

Version 5.5