Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters ...
Message
From
31/05/2001 08:43:02
 
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Miscellaneous
Thread ID:
00513091
Message ID:
00513100
Views:
14
so what you're saying is that if I was to pass data from a shortcut menu I sould make the menu procedure a call to the calling form -_Screen.activeform.SomeMethod where SomMethod is something like < do form oForm with this to that )

correct?
- jer

>Hi!
>
>No. You require to pass data from one form to another. Menu just can call the method of the main form when user select certain menu item. Than the method of the main form can do whatever you want, include the call of the child form. Data culd be passed many ways. In the menu form method call usually will look like following:
>oMyForm.CallChildForm(oMyForm.SomeValue1,MyAlias.IDKey,...)
>If you want them change, you can use
>oMyForm.CallChildForm(¶ms)
>and fill the params variable by a string containing whatever values you want in the standard VFP format.
>
>HTH.
>
>>it that the only way to do it? is there a way to pass data between forms through menus?
>>
>>>Hi!
>>>
>>>You can temporary define the public variable that will store the reference to the object you want, than access that object in the menu commands.
>>>
>>>HTH.
>>>
>>>>g'day,
>>>>
>>>>how can you pass data ( such as a calling form object referance ) through a shortcut menu ( or anymenu for that matter )?
>>>>
>>>>I've tried adding a Lparameters statement to the menu procedure and then on right click < do ShourtcutMenu.mrp with this to that >, but Error not paraemters statment found ( because the first line to execute on right click is are define pad functions )
>>>>
>>>>would i need modifiy the code from from the menu designer or is there another way of doing it?
>>>>
>>>>thanks
>>>>- jer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform