Thanks Tom for your suggestion.  I realize I could do that but I'm trying to come up 
with a generic code for all forms. If I can get ISTAT functions to do the work I'd 
like to.  

>>> [EMAIL PROTECTED] 10/05/01 04:30PM >>>
G'day Bob,

Long, hard way (but certain) is to test the value of all the variables to see
if they have changed and if so, run the code.   Rather than test all the
variables in one IF you could do it in a series of IFs, the most likely to
be changed at the top of the list...

SET VAR...

EDIT USING FormName

IF v1After <> .v1Before THEN
   GOTO RunCode
ENDIF
...

LABEL NoCode
RETURN

LABEL RunCode
RUN CodeBlok IN ProcFile.apx
RETURN





At 03:29 PM 05/10/2001 -0400, you wrote:
>Hello Everyone:
>
>I am attempting to use (ISTAT('FORM_DIRTY_FLAG')) fucntion to determine 
>whether or not to run a piece of code.
>
>My code looks like:
>
>EDI USI FORMNAME
>
>IF (ISTAT('FORM_DIRTY_FLAG')) = 1 THEN
>     DO THIS
>ENDIF
>
>My form is a form connected to a dummy table that is soley 
>variables.  Based on the above code if I enter the form and make no 
>changes the DO THIS should be skipped because the value of ISTAT should be 
>0.  It doesn't.  It runs the DO THIS code.  Anyone got a 
>suggestion.  Thanks to all in advance.
>

Warmest regards,


Tom Grimshaw
coy:    Just For You Software
tel:    612 9552 3311
fax:    612 9566 2164
mobile: 0414 675 903

post:   PO Box 470  Glebe  NSW  2037  Australia
street: 3/66 Wentworth Park Rd  Glebe  NSW  2037

email:  [EMAIL PROTECTED] 
web: www.just4usoftware.com.au 

This email and any files transmitted with it are confidential to the 
intended recipient and may be privileged. If you have received this email 
inadvertently or you are not the intended recipient, you may not 
disseminate, distribute, copy or in any way rely on it. Further, you should 
notify the sender immediately and delete the email from your computer. 
Whilst we have taken precautions to alert us to the presence of computer 
viruses, we cannot guarantee that this email and any files transmitted with 
it are free from such viruses.


Reply via email to