Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get an Form/Object Reference via a Prg Class
Message
 
 
To
12/01/1999 11:30:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174742
Message ID:
00175086
Views:
35
Dan,

IMHO, that functionality belongs to the form class you use. A few lines of code in the KeyPress method with KeyPreview=.t. would handle it. This way it's all encapsulated to the form and it doesn't matter how many forms there are.

If you want to coordinate a Menu item to the form you can use _screen.ActiveForm.SomeMethod().

>Ok. Here's another question, then. We have a company that wants to add old Dos interface keyboard navigation buttons. PGUP for previous record ... etc. What we were thinking would be easiest would be to add form specific menus. Now the question is what is the best way to handle movement if your not using Name and they can have multiple instances of the same form open. _SCREEN.ActiveForm?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform