Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>If I remember correctly, there is actually the equivalent of a "virtual" record beyond the actual record count of a file that the file pointer rests on when EOF() is effectively encountered but before the function EOF() is actually registering as .T. at this point in relation to printing data out from the file into a report form. So as I recall (my memory my not be exact here) I have had some success using the expression 'IIF(RECNO()>=RECCO(),"etc","etc")' to trigger printout of appropriate summary data at the end of a report as well as in certain other functional areas when a similar comparison has been used for such as in recognizing when to print certain types of sub-group totals. HTH. /psb.
You may be right. I don't know exactly what FoxPro is doing internally for the report summary (obviously, it must rich the eof() but be able to print from the last record). As far as I remember, eof() is not true in the summary band, but I'm not 100% sure.
Anyway, I don't see any reason to test eof in summary band. You already know there that the report it's ended. I agree it can be useful sometimes in group footers.
Vlad
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement