Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut menu
Message
From
25/10/2002 11:13:31
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
25/10/2002 11:01:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00713701
Message ID:
00715462
Views:
15
I'm not sure I understand it, unless he's saying to create a Global method associated with _Screen so it will always be available via Activeform...

-Irv.

>Thanks. Paco's solution to me seems the simplest, though:
>
>_Screen.Activeform.CleanupFlock()
>
>What do tyou think?
>
>Thanks for your help,
>
>Yossi
>
>
>>I have a RightClick menu in a textBox that is used with a Grid class, and I keep all the Menu-called Methods at the same level by calling THIS.Methodname, thus avoiding THISFORM.
>>
>>I can't remember if I had to do that to avoid the error you saw, but it seems to work.
>>
>>HTH,
>>
>>-Irv.
>>
>>>Hi:
>>>
>>>I'm new to invoking shortcut menus with rightclick.
>>>
>>>In my grid, I have In my rightclick method 'DO grdflocks.mpr', which is a shortcut menu. In the first option in this menu I have 'thisform.CleanupFlock()' as a procedure.
>>>
>>>I get an error:
>>>
>>>THISFORM can only be used in a method
>>>
>>>I really don't want to put all of the code in the menu, because I want the same code to be called from elsewhere in the form. What is the right, elegant way to do this?
>>>
>>>Thanx,
>>>
>>>Yossi Gourarie
Previous
Reply
Map
View

Click here to load this message in the networking platform