On my initial testing while I was trying to figure this out, no it doesn't work on closing the form. By then the value of the control is already "wiped out" so to speak by virtue of [esc] out of that field saying "I didn't want to save that value"
Karen -----Original Message----- From: jan johansen <[email protected]> To: RBASE-L Mailing List <[email protected]> Sent: Fri, Mar 2, 2012 1:33 pm Subject: [RBASE-L] - Re: Saving a variable edit Karen, As Mike has suggested, the ON EXIT of the individual never fires because you are still in it. This is similar behavior to a scrolling region where if you use an ON EXIT eep on a field, it only fires when you move between fields in a row and doesn't fire when you use the F7 or F8 to move between rows but never the field. I think my last post would work in the form ON CLOSE eep but I haven't tested it. Jan -----Original Message----- From: [email protected] To: [email protected] (RBASE-L Mailing List) Date: Fri, 2 Mar 2012 13:04:33 -0500 (EST) Subject: [RBASE-L] - Re: Saving a variable edit Jan: So what you're saying is that your solution wouldn't work if they pressed [esc] out of the field, right? I just demonstrated the form to the user and showed that she had to press [enter] once before she pressed [esc] and she was cool with that... Karen -----Original Message----- From: Mike Byerley <[email protected]> To: RBASE-L Mailing List <[email protected]> Sent: Fri, Mar 2, 2012 12:01 pm Subject: [RBASE-L] - Re: Saving a variable edit Per my first ans to Karen, when you press '[esc]' while in the dit control, he onExit eep never fires because you never left the control.. ----- Original Message ----- rom: "jan johansen" < [email protected]> o: "RBASE-L Mailing List" < [email protected]> ent: Friday, March 02, 2012 11:51 AM ubject: [RBASE-L] - Re: Saving a variable edit Karen, What I have done in the past is use to assign a componentid to that ariable edit. Assuming a variable edit called vbeforeedit. Then in the on-exit eep do a GETPROPERTY yourcompid TEXTVALUE vafteredit IF vafteredit <> .vbeforeedit THEN SET VAR vbeforeedit = .vafteredit ENDIF PROPERTY TABLE IntCmd 'POST' Jan -----Original Message----- From: [email protected] To: [email protected] (RBASE-L ailing List) Date: Fri, 2 Mar 2012 11:18:01 -0500 (EST) Subject: [RBASE-L] - Re: Saving a variable edit Mike: You're absolutely right. In most cases I WOULD disable the esc] nd make them press a button. This is one of those heads-up kind of DOS forms that I'm converting. Trying real hard to mimic the way DOS does this hey, didn't I recently start a conversation on this??). I'll show er what I did as a workaround and tell her that I can locate a button right after he field that she can press a [spacebar] to select, and see which she refers. It still seems weird to me that the software thinks I've never left" the edit box. I did enter the edit box, I pressed a key to get out of the dit box... Karen -----Original Message----- From: Mike Byerley < [email protected]> To: RBASE-L Mailing List < [email protected]> Sent: Fri, Mar 2, 2012 10:10 am Subject: [RBASE-L] - Re: Saving a variable edit The onExit eep never fires because you never left the edit box. Can't you suppress the '[esc]' key for the form and make them ress a utton to exit. It should work ok then. ----- Original Message ----- From: <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Friday, March 02, 2012 9:29 AM Subject: [RBASE-L] - Saving a variable edit What I'm doing: I have a form based on a dummy table, nothing but variables. If the user presses [esc] while in the last variable edit it does not save the value. I had a solution to this problem saved in my note document, but it oesn't work now that I need to use it. The exact posting from this list said: 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 I replaced the tablename with my own table but it doesn't work. It eems that pressing [esc] from the last field doesn't even evaluate the ield's "on exit" eep (I put a pause message in there it never shows). Has nyone else done this successfully? Karen

