>On Bar 1 of Menu1 reads: ON BAR 1 of Menu1 ACTIVATE POPUP Menu2
>On Bar 1 of Menu2 reads: ON BAR 1 of Menu2 ACTIVATE POPUP Menu3
>On Bar 1 of Menu3 reads: ON BAR 1 of Menu3 ACTIVATE POPUP Menu4
>
>ON SELECTION POPUP Menu4 Do Myprocedure
>
>Bear in mind that the Prompt of Bar 1 of Menu4 is similar to another
>called by another menu option (NOT BAR 1) of Menu1 which has its own prompt. While in Myprocedure how do you trace the heirarchy ?
Well, in this case, instead of:
ON SELECTION POPUP Menu4 Do Myprocedure
You could use:
ON SELECTION POPUP Menu4 Do Myprocedure with "Option 4"
or the equivalent:
ON SELECTION POPUP Menu4 Myprocedure("Option 4")
The text, "Option 4" in the example, can provide all the information you want. Just use different parameters for your different prompts, accept the parameters in function MyProcedure(), and act accordingly.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)