>I created a menu for my department which called various utilities. It worked well.
>
>Then I got fancy, and decided to have the menu options call a procedure to call the utilities, rather than call the utilities themselves. That decision was...
not so solid.>
>Some of these utilities do a SET PROCEDURE TO in the middle, which promptly blows away the menu's reference to its own procedure.
>
>As a workaround, I have a "reset-SET-procedure" menu item, which doesn't go through the procedure. However, I'd like to figure out a way to have the menu see changes in SET("Procedure") and add itself back in.
>
>I was going to try something elaborate involving a textbox added to the screen with ControlSource='SET("Procedure")', its assign method, and BINDEVENTS, but that fell by the wayside when I discovered I couldn't make a function call a ControlSource.
>
>Has anybody actually pulled something like this off? :-)
Garret,
A little confusing:) I don't see how would setting controlsource to set('procedure') help but you can set controlsource to a function. Surround it with parentheses.
Isn't checking "MYPROCEDURE"$set("procedure") easier? Or do ... in ...?
Cetin