Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a parameter to a menu
Message
From
01/01/2014 23:10:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Passing a parameter to a menu
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:
01591235
Views:
97
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
Next
Reply
Map
View

Click here to load this message in the networking platform