User Tools

Site Tools


rulescollection_class_methods.htm
Navigation:  ABC Library Reference > RuleManager > RulesCollection Class Methods >====== RulesCollection Class Methods ====== Previous pageReturn to chapter overviewNext page

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

blk2blue.jpg

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)

rulescollection_class_methods.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1