Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I obtain names of all popups
Message
From
22/02/2010 02:45:50
 
 
To
22/02/2010 02:32:25
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01450164
Message ID:
01450173
Views:
49
Thanks Agnes! Didn't even think of that!

Do you know if 'Popup' and 'Popups' is included in every language runtime? Then I can just check for "Popup" $ my_line_string
or "Popups" .

Regardless though, I am really hoping to find a better way to do this. One way would be to programmatically iterate through every menu choice - e.g. - assume that the menu is _msysmenu (which it is in my case) - get the pad names
then ACTIVATE MENU _msysmenu PAD (padname).
At that point I should be able to call 'popup()' and it should return the name of the current popup. No? But popup() is not behaving the way I expect it to. It always returns an empty string()




>Hi David,
>
>as long as you use the english runtime it will work. as soon as you use something different (lets say your exe runs on my comp) it might fail:
>[snip]
>
>_WRAP                                               Global                        L            .F.
>
>   81 Systemvariablen definiert
>
>Menü- und Blockdefinitionen
>
>    0 Menüs definiert
>
>Popup-Definitionen
>
>    0 Popups definiert
>
>Fensterdefinitionen
>
>[/snip]
>
>Agnes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform