Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 If set to .T., the generated file is be deleted after it is copied to the archive (optional). 

tuAppend

Anchor
Setparams_tuappend
Setparams_tuappend

 Specifies whether the generated document will be appended to an existing file. This parameter can be either logical, numeric or a string, with the following meaning:

...

Info

You can retrieve the English message for the code returned with ErrorMessage() method.

Examples

Code Block
LOCAL m.lnErr
m.loXFRX=EVALUATE([xfrx("XFRX#INIT")])

* The generated report will be appended to the end of the existing document.
m.lnErr=m.loXFRX.SetParams(,,,,.T.,,"XFF",,,, .T.)

* The generated report will be inserted at the beginning of the existing document.
m.lnErr=m.loXFRX.SetParams(,,,,.T.,,"XFF",,,, 1)

* The generated report will be inserted to the existing document, between pages 4 and 5.
m.lnErr=m.loXFRX.SetParams(,,,,.T.,,"XFF",,,, 5)

* The generated report will be inserted between pages 4 and 6, replacing page 5.
m.lnErr=m.loXFRX.SetParams(,,,,.T.,,"XFF",,,, "R5")

* The generated report will be inserting between pages 3 and 9, replacing pages 4,5,6,7 and 8.
m.lnErr=m.loXFRX.SetParams(,,,,.T.,,"XFF",,,, "R4:8")

* The existing document will be overwritten.
m.lnErr=m.loXFRX.SetParams(,,,,.T.,,"XFF",,,, .F.) 

IF m.lnErr<>0
   ?m.loXFRX.ErrorMessage(m.lnErr)
ENDIF

...