User Tools

Site Tools


seterrors_set_the_error_class_used_.htm
Navigation:  ABC Library Reference > FileManager > FileManager Methods >====== SetErrors (set the error class used) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

SetErrors( ErrorClass )

blk2blue.jpg

SetErrors Sets the Error Class that the file manager uses.
ErrorClass The label of the ErrorClass object.

The new SetErrors() method of the file manager allows you to set the error class that the file manager uses after it has been initialized.

Example:

DLLInitializer.Construct PROCEDURE
 CODE
 !Initialize the local INI manager to use windows INI file
 LocalINIMgr.Init('allfiles.INI', NVD_INI)
 INIMgr &= LocalINIMgr
 
 FuzzyMatcher.Init                              ! Initilaize the browse 'fuzzy matcher'
 FuzzyMatcher.SetOption(MatchOption:NoCase, 1)  ! Configure case matching
 FuzzyMatcher.SetOption(MatchOption:WordOnly, 0)! Configure 'word only' matching
 
!These procedures are used to initialize the DLL.
!It must be called by the main executable when it starts up
allfiles:Init PROCEDURE(<;ErrorClass curGlobalErrors>, <;INIClass curINIMgr>)
 CODE
 IF ~curGlobalErrors &amp;= NULL
   GlobalErrors &amp;= curGlobalErrors
 END
 IF ~curINIMgr &amp;= NULL
   INIMgr &amp;= curINIMgr
 END
 Access:Customer.SetErrors(GlobalErrors)
 Access:Orders.SetErrors(GlobalErrors)
 Access:Detail.SetErrors(GlobalErrors)
 Access:Products.SetErrors(GlobalErrors)
 Access:Phones.SetErrors(GlobalErrors)
seterrors_set_the_error_class_used_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1