Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shift+S to Save
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Shift+S to Save
Miscellaneous
Thread ID:
00417070
Message ID:
00417070
Views:
47
Friday greetings :)

With the help of several of you, I figured out the problem with Ctrl+S to call my save routine.

I've changed all the shortcuts to Shift+key to allow more choices (since many like C, X, V are used with Ctrl as Windows standards in editing).

My code is
DO CASE
		**Save
	CASE nKeyCode=83 and nShiftAltCtrl=1
		THISFORM.qcmdsave1.CLICK

		**Next
	CASE nKeyCode=78 and nShiftAltCtrl=1
		THISFORM.qcmdnext1.CLICK
ENDCASE
This works wonderfully except in the case when the cursor is in a text field - then it put the letter at the cursor location (for example, if I press Shift+S, an "S" appears in the text box). If I press the combination again, it works properly, but once I stop, the tableupdate kicks in and thinks I've changed the record.

Once again I humbly seek suggestions *g*
Phil Thomas
http://phillipdthomas.com

Never let your energy or enthusiasm be dampened by the discouragements that must inevitably come.....
Next
Reply
Map
View

Click here to load this message in the networking platform