main logo
Subject: Re: Codebook Error Handler
Author: Richard E Canning
Posted: 2001/03/22 09:31:51
 
View Entire Thread
New Search


<i><font color="#663300">FWIW I use class based menus and the error handling is working beautifully for me. So well in fact that it is picking up errors I never knew existed before 6.1 - but that is another story.
I therefore suggest that the problem is not one intrinsic to the use of class based menus.

</font></i>

Perhaps it would be more helpful if I explain further...

First I place "ERROR 1925" in the click event of a button on the form, then
I run the form and click on the button. The error 'Unknown member OFILEPAD' immediately shows up. When I click on suspend, it stops at the following line in the oMaintoolbar.cmdExit.SetEnabled() method:

IF llOK2SetEnabled
loMenuBar = EVAL( lcObjectPath ) *** stops here ***
loMenuBar.Enabled = tlEnabled
ENDIF

note: the value of lcObjectPath was "goApp.oMenu.oFilePad.oPopup.oExitBar"

This method is stated to be responsible for enabling/disabling the toolbar buttons and corresponding menu bars.

Perhaps there is some property I need to fill in the mainmenu or maintoolbar class to account for this?

Regards,
Richard Canning
Atlantic DataSystems Inc.
St. Johns, NF, Canada
 
©2001 Richard E Canning
<-- Prior Message New Search Next Message -->