Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a parameter to a menu
Message
From
06/01/2014 13:09:22
 
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:
01591405
Views:
51
Thanks! Works great.

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform