WR Insert picture area

4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next

version 6.5 (Modified)


WR Insert picture area (area; picture; where) Longint

ParameterTypeDescription
areaLongint4D Write area
picturePicture4D Write area picture to insert
whereInteger1=Document end
0=Insertion point
Function resultLongintError code

Description

The WR Insert picture area command inserts the 4D Write document in Picture into area.

where describes the position at which the new text will be inserted.

If where equals 1, the text will be inserted at the end of the document.

If where equals 0, the text will be inserted at the current insertion point or will replace any currently selected text.

WR Insert picture area returns a long integer containing an error code.

If the insertion is successful, the value returned is 0. See Appendix C: Error Codes for error codes.

Example

The following example adds the signature of the sender to the end of the document:

   QUERY([Sender]; [Sender]Name=[Letter]Sender)
   ErrorNum:=WR Insert picture area(area;[Sender]Signature_; 1)

See Also

WR Area to picture.


4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next