Obviously or NOT, the IntCmd in the code is the name of my table.  YMMV.
----- Original Message ----- From: "MikeB" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Saturday, October 31, 2009 2:51 PM
Subject: [RBASE-L] - Re: Saving data with the ESC key, is it possible in Rbase 7.6?


OK.. I put PROPERTY RBASE_FORM DONTSHOWSAVEDIALOG 'TRUE' in a test form and put the following in the onExit EEP and it saves the data.

IF (LASTKEY(0)) = '[esc]' THEN
PROPERTY table IntCmd 'POST'
ENDIF
RETURN

----- Original Message ----- From: "MikeB" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Saturday, October 31, 2009 2:41 PM
Subject: [RBASE-L] - Re: Saving data with the ESC key, is it possible in Rbase 7.6?


I usually put a Pause 2 using '' in there for testing just to see if it is firing. I take it you have disabled the default behavior of requiring the user to answer yes/no to the save data dialog that pops up. Wouldn't enabling that behavior solve the problem?


----- Original Message ----- From: "Michael J. Sinclair" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Saturday, October 31, 2009 2:28 PM
Subject: [RBASE-L] - Re: Saving data with the ESC key, is it possible in Rbase 7.6?


Nope, that did not work for me...
Here is my code....

SET V vlastkey = (LASTKEY(0))
IF vlastkey = '[ESC]' THEN
 SKIP 0
ENDIF
RETURN

When I trace it, it looks like the ESC key interupts the code before the ON EXIT EEP ever gets a chance to run.
Mike
-------------- Original message from "MikeB" <[email protected]>: --------------

Apples and Oranges. We didn't have a Memo control in 6.5.

The behaviors of the 7.0 and up controls are windows controls and you have
to work with that in mind. Did you try trapping for the '[ESC]' in the
onEXIT eep using LastKey and see if SKIP 0 would solve it?

Sometimes just trying the brute force method gets an answer quicker than
waiting for a reply from the list. I didn't try it, but that is what I
would do.



----- Original Message ----- From: "Michael J. Sinclair"
To: "RBASE-L Mailing List"
Sent: Saturday, October 31, 2009 2:02 PM
Subject: [RBASE-L] - Saving data with the ESC key, is it possible in Rbase
7.6?


> Hi all,
>
> I have a Variable Memo field in a form. If I change the data and hit > the > tab key, the changes are saved. But..my users are used to using Ver > 6.5, > where hitting the ESC key would save the changes. In Version 7.6, > hitting
> the ESC key "cancels/undoes" the changes. Is it possible, to make the
> press of an ESC key save changes?
>
> I tried to remap the ESC key to [TAB][ESC], but that does not seem to
> work.
> If not, is it possible to make the ESC key just not do anything?
>
> Mike
>


--------------------------------------------------------------------------------


Hi all,



I have a Variable Memo field in a form. If I change the data and hit the tab key, the changes are saved. But..my users are used to using Ver 6.5, where hitting the ESC key would save the changes. In Version 7.6, hitting the ESC key "cancels/undoes" the changes. Is it possible, to make the press of an
ESC key save changes?



I tried to remap the ESC key to [TAB][ESC], but that does not seem to work.

If not, is it possible to make the ESC key just not do anything?



Mike





--------------------------------------------------------------------------------


Nope, that did not work for me...
Here is my code....

SET V vlastkey = (LASTKEY(0))
IF vlastkey = '[ESC]' THEN
 SKIP 0
ENDIF
RETURN

When I trace it, it looks like the ESC key interupts the code before the ON EXIT EEP ever gets a chance to run.
Mike
-------------- Original message from "MikeB" <[email protected]>: --------------

 > Apples and Oranges. We didn't have a Memo control in 6.5.
 >
> The behaviors of the 7.0 and up controls are windows controls and you have
 > to work with that in mind. Did you try trapping for the '[ESC]' in the
 > onEXIT eep using LastKey and see if SKIP 0 would solve it?
 >
> Sometimes just trying the brute force method gets an answer quicker than
 > waiting for a reply from the list. I didn't try it, but that is what I
 > would do.
 >
 >
 >
> ----- Original Message ----- > From: "Michael J. Sinclair"
 > To: "RBASE-L Mailing List"
 > Sent: Saturday, October 31, 2009 2:02 PM
> Subject: [RBASE-L] - Saving data with the ESC key, is it possible in Rbase
 > 7.6?
 >
 >
 > > Hi all,
 > >
> > I have a Variable Memo field in a form. If I change the data and hit the > > tab key, the changes are saved. But..my users are used to using Ver 6.5, > > where hitting the ESC key would save the changes. In Version 7.6, hitting > > the ESC key "cancels/undoes" the changes. Is it possible, to make the
 > > press of an ESC key save changes?
 > >
> > I tried to remap the ESC key to [TAB][ESC], but that does not seem to
 > > work.
 > > If not, is it possible to make the ESC key just not do anything?
 > >
 > > Mike
 > >
 >
 >
 > 
--------------------------------------------------------------------------------
 >
 >
 > Hi all,
 >
 >
 >
> I have a Variable Memo field in a form. If I change the data and hit the tab > key, the changes are saved. But..my users are used to using Ver 6.5, where > hitting the ESC key would save the changes. In Version 7.6, hitting the ESC > key "cancels/undoes" the changes. Is it possible, to make the press of an
 > ESC key save changes?
 >
 >
 >
> I tried to remap the ESC key to [TAB][ESC], but that does not seem to work.
 >
 > If not, is it possible to make the ESC key just not do anything?
 >
 >
 >
 > Mike
 >
 >





Reply via email to