Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting first field and exiting last
Message
From
08/11/1998 10:55:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Setting first field and exiting last
Miscellaneous
Thread ID:
00155566
Message ID:
00155566
Views:
51
I've recently converted a DOS-based CLipper program to VFP 5 for a client. In addition to all the great new features, I've tried to keep some of the old "fancy" keystrokes we had added to the DOS-based program to spruce it up. This keeps the clients happy, reduces training time and the "jump to Windows" anxiety for the users. I've managed to wrestle VFP into compliance while teaching myself OOP, VFP and Windows programming jargon but I'm stumped on one set of features: I'd like to have the cursor go to the first field of a form on an Add/Copy and automatically call the SAVE routine when they press ENTER/TAB on the last field.

I know I could do this by putting code into the appropriate fields on each form but I'd prefer to do this from a more OOP-correct angle. Is there a method or property I can check/use to determine which field is first and/or last and set up a procedure that uses these when appropriate? Or do I need to set properties in my base classes and jump thru hoops from there? Any suggestions would be appreciated.
Vicki Combs
Customized software for today AND tomorrow...
Applications and web sites designed, developed and maintained. (MBE)

"Change is inevitable...unless that's changed!
Next
Reply
Map
View

Click here to load this message in the networking platform