Navigation: ABC Library Reference > RuleManager > RulesCollection Class Methods >====== RulesCollection Class Methods ====== | |
Access Methods
Although all of the properties of the RulesCollection class are PRIVATE, public access to these properties is provided by a set of methods:
GetDescription() returns a STRING containing the Description property
GetErrorImage() returns a STRING containing the ErrorImage property
GetChangeControls() returns a BYTE containing the ChangeControlsStatus property
SetDescription( string ) sets the Description property
SetErrorImage( string ) sets the ErrorImage property
SetChangeControls( status ) sets the ChangeControlsStatus property
Setxxx/Getxxx | Sets or retrieves a property |
String | A string constant, variable, EQUATE, or expression that contains a value appropriate to the property being set. |
status | A Boolean constant, variable, EQUATE, or expression that contains either True or False. |
Example:
Customer.SetErrorImage('~BRuleNo.ico')
Customer.SetDescription('Customer File Rules')
Customer.AddRule('ShortNameRequired','Short name is required', |
'cus:ShortName <;<;> OR CheckShortName()' |
,?cus:ShortName,3)