Bob :
>>
Thanks to those who answered by ISTAT(Form_Dirty_Flag) question. Here's a
dumb question that I think I gathered from the answers. Is this an eep
function only? I was attempting to usi it in a command file right after I
had done an EDI USING command.
EDI USI FORMNAME
IF (ISTAT('FORM_DIRTY_FLAG')) = 1 THEN
DO SOMETHING
ENDIF
<<
ISTAT is a function. It can be used anywhere (in or out an EEP).
But flag 'Form_Dirty_Flag' is posted only during form processing.
So, if you use it outside a form, it's value will be unpredictable ....
If you need to know if some rows has been created/updated by the previous
form, here is a solution :
1) Add a EEP at 'After_Saving_a_row' level :
-- Saverow.eep
-- Ex�cut� apr�s modif et sauvegarde d'une COMMANDE
-- Sert � OUI l'indicateur de modif (force les recalcul et sortie de
grille)
SET var vmodif = 'Oui'
RETURN
2) The code you run to run the form should look like this :
SET VAR vmode TEXT = NULL
...
SET VAR vmodif = 'Non'
EDIT USING &vnomform WHERE (numcde = .vnumcde) AT .wx1, .wy1, .wx2, .wy2 +
CAPTION .vcaption
-- Test de vmodif, renseign� dans EEP saverow
IF vmodif = 'Oui' THEN
Do what must be done if some rows has been updated
ELSE
Do what must be done if all rows are unchanged
ENDIF
Hope this will help ....
J.M. GRATIAS, Logimatique, France