Difference between revisions of "RemoveFilter"

From Catglobe Wiki
Jump to: navigation, search
 
Line 19: Line 19:
  
 
'''Examples'''
 
'''Examples'''
 +
 +
''addFilter("Sex == 1"); ''
 +
 +
''addFilter("Age == 18"); ''
 +
 +
''string a = dcGetFilterExpression(); ''
 +
 +
''print(a); //(Sex == 1) && (Age == 18) ''
  
 
''removeFilter(1); ''
 
''removeFilter(1); ''
 +
 +
''a = dcGetFilterExpression(); ''
 +
 +
''print(a); //(Age == 18) ''
  
 
'''Availability'''
 
'''Availability'''

Latest revision as of 10:21, 20 December 2011



removeFilter

Remove a filter expression from filter expression list.

Syntax

removeFilter(filterIndex)

Arguments

filterIndex: Is a numeric (non-decimal) expression.

Return type

empty

Examples

addFilter("Sex == 1");

addFilter("Age == 18");

string a = dcGetFilterExpression();

print(a); //(Sex == 1) && (Age == 18)

removeFilter(1);

a = dcGetFilterExpression();

print(a); //(Age == 18)

Availability

Version 5.4