Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a parameter to a menu
Message
 
 
To
01/01/2014 23:10:11
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01591235
Message ID:
01591237
Views:
115
This message has been marked as the solution to the initial question of the thread.
You can add a property to _Screen object and store Excel object reference there

>Hi All:
>
>How do you pass a parameter to a menu. I want to activate excel with:
>
>
>loExcel = CREATEOBJECT("Excel.application")
>
>
>Then I want to pass it to the menu in the following code, so that it is available to any program or form called by the menu.
>
>High level code:
>
>
>CLOSE ALL
>SET MESSAGE TO 'Processing...'
>
>SET PROCEDURE TO emailCDO, ygprocs, commonprocs
>SET DELETED ON
>SET DECIMALS TO 5
>SET SAFETY OFF
>SET TALK OFF
>SET CONSOLE OFF
>SET EXACT ON
>SET EXCLUSIVE OFF
>SET MULTILOCKS ON
>
>loExcel = CREATEOBJECT("Excel.application")
>
>PUSH MENU _msysmenu
>DO pm.mpr
>READ events
>
>
>Thanks,
>
>Yossi
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform