Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you pass a parameter to a shortcut procedure
Message
From
10/09/2008 12:32:02
 
 
To
10/09/2008 12:26:28
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01346381
Message ID:
01346382
Views:
10
>The user right clicks a control which produces a shortcut menu. The choice then executes procedure code built into the shortcut. The procedure code needs to know a property value of the control that was right clicked. Is there a way to pass this value to the procedure code other than setting it as a public or private variable?
>
>Thanks

Yes, use a private variable prior to activating the shortcut
Private ControlUnderFocus
ControlUnderFocus = m.this
...

activate popup (theName)
or
Private ControlProperty
ControlProperty = m.this.PropertyName
...

activate popup (theName)
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform