| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > RuleManager > RulesCollection Class Methods >====== RulesCollection Class Methods ====== | [[rulescollection class properties.htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[addcontrol add managed control .htm|{{btn_next_n.gif|Next 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|blk2blue.jpg}} | **Set**xxx**/Get**xxx | 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) **