Forms Connected to Menus?

Author: Michael G. Emmons

Posted: 1998-05-26 at 13:35:03

I was looking over some of the ebizobj init code the other day and noticed the following bit of code:

*–– Put up a custom menu pad if specified

IF !EMPTY(this.cMenuPad) AND llFormIsPresent AND ;

TYPE("goApp.oMenu") == "O"

=EVAL("goApp.oMenu." + this.cMenuPad + ".Show()")

ENDIF

If I remember correctly, the bizobj will add a menu item associated with it on the fly, no? This code seems to assume that the menu pad is already loaded, but is hidden. Just to test this I added a pad I had already defined in my amenus.vcx to the cMenuPad property. Sure enough, I got a "Unknown member" error when trying to show() the menu pad. Has this code changed from the original bizobj code?

Michael G. Emmons

<a href="mailto:MichaelE@flashcreative.com">MichaelE@flashcreative.com</a>

Senior Consultant

<a href="http://www.flashcreative.com" class="white" onmouseover="style.color='#00cc00'" onmouseout="style.color='#0000ff'" title="Flash Creative Management Web Site">Flash Creative Management</a>

©1998 Michael G. Emmons