Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Private data Session
Message
From
30/05/2002 09:34:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00662505
Message ID:
00662958
Views:
13
>Hilmar, thanks for your reply.
>
>I'm wondering how a menu Shoertcut would work ? . I have a global ON Key F10 which activates a lookup if the user is on a particular text box.

Well, you have a menu item, in your global menu, that does the corresponding lookup. You define a shortcut for it.

To access the current form, you would use _vfp.ActiveForm. You can also use _vfp.ActiveForm.ActiveControl, but that does not show correctly in the debugger.

To avoid problems with datasessions, you should have a method on your form (defined in the base class for all your forms, of course), and call the form method from your menu shortcut (_vfp.ActiveForm.MyLookup()).

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform