How about a SAVEROW after the RESETROW?"

Dennis

________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Thursday, August 19, 2010 8:08 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Resetting dirty flag

Working in 7.6.  I have a "discard changes" button on the form, but I want to 
be able to inform the user whether there were changes to be discarded or not.  
So I have the following code:

IF rbti_dirty_flag = 1 THEN
  RESETROW
ELSE
  PAUSE 2 USING 'There were no changes to Undo' ....etc
ENDIF


This works great except in one sequence.  If they make a change and hit the 
discard button (which correctly does the reset), I would expect that the dirty 
flag is reset to 0.  However, it isn't.  If they click the button immediately a 
second time, it still does the resetrow rather than giving them a message that 
there are no changes to undo.  I tried:  clear var rbti_dirty_flag   but it 
tells me it's an invalid variable.   A minor issue, but was wondering if anyone 
knows how to do it.

Karen

Reply via email to