>I think what causes the issue is the use of the LOCFILE function. The code looks like this:
>
>
>ON SELECTION BAR 8 OF gu_tran ;
>DO _1z9179vlq ;
>IN LOCFILE("ABC\ARMAIN" ,"MPX;MPR|FXP;PRG" ,"WHERE is ARMAIN?")
>
>
>I suppose this was done so that you could call an external procedure, but what happened is the pathing got messed up somehow and despite the fact that the function to be called (named _1z9179vlq by GenMenu) is in the same MPR, it can't find it because it was looking in a file that did not exist (it was trying to look within itself, but due to the pathing problem itself didn't exist!). To me, this is problematic design.
>
One issue with menus is that once the menu is drawn, the MPR leaves the execution stack, so subsequent calls to code located there need a path.
Tamar