>Added this to the beginning of the main program:
>
>DECLARE _fpreset IN msvcrt20.dll
>
>We addedcalls to _fpreset() after each:
>
>SET( "Printer", 2)
>SET( "Printer", 3)
>REPORT FORM ...
>SET PRINTER TO NAME
>
>Also add a call to each report's dataenvironment BeforeOpenTables and Destroy
>method.
>
>Also add _fpreset() immediately after either of these, which this other
>developer was not using:
>
>GETPRINTER()
>SYS(1037)
All,
This is fine, if the declare is set in the main.prg. During development, I don't call a main.prg and during the day I may issue a clear all, clear all, clear. I can add the _fpreset() to the forms using printing to the base class, but can I add the:
DECLARE _fpreset command in the load or init event? or at least test whether is already declared and if not, then Declare it?
What would be the best approach?
Robert
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