I have a very big dialogbox with lot's of function, use of very complicated arrays etc.
If an error in an array occurs, an errormessage is displayed and the application is quit.
So I tried to avoid the errormessage by using TRY ... CATCH ... END.
My code looks like :
- Code: Select all Expand view
- TRY
DEFINE DIALOG BOX oDlg .....
REDEFINE GET .....
REDEFINE LISTBOX ........
REDEFINE BUTTON ........
REDEFINE BUTTON ........
ACTIVATE DIALOG .......
CATCH
MsgAlert("An error occured but the dialog will be reopened automatically")
oDlg:End()
END
If I don't use TRY ... CATCH ... END, the errormessage is displayed.
What do I do wrong?
Thanks.