EnableMethodErrors (ILEADRasterImgList) example for Visual Basic
On Error GoTo ErrorHappened
LEADImgList1.EnableMethodErrors = False
'call with invalid file name
LEADImgList1.LoadDatabase "dd::yY"
MsgBox "no errors genererated so far"
'enable error generation
LEADImgList1.EnableMethodErrors = True
LEADImgList1.LoadDatabase "dd::yY"
Exit Sub
ErrorHappened:
MsgBox "There was error: " & Error()