4D Write v14WR INSERT EXPRESSION |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v14
WR INSERT EXPRESSION
WR INSERT EXPRESSION
The WR INSERT EXPRESSION command inserts a reference to expression into area, replacing any currently selected text. expression must be a valid 4D expression that returns a value. expression can be a 4D variable, function, or statement that returns a value; an external function or a user-defined function (project method); or a picture variable. If expression is a variable, you should pass its name between double quotes (""). The numFormat optional parameter indicates the format of numeric expressions (i.e. Real, Integer, or Longint). It can contain any numeric display format, whether it exists or not (for example “###,##”). Put an empty string when this parameter is not appropriate or omit it if the following two parameters have been omitted. The dateFormat optional parameter indicates the format of Date type expressions. It must contain a number that indicates an existing date format. Put 0 when this parameter is not appropriate or omit it if the following parameter has been omitted.
The timeFormat optional parameter indicates the format of Time type expressions. It must contain a number indicating an existing time format. Put 0 when this parameter is not appropriate or omit it.
When you insert a picture expression, the optional destination parameter indicates where the picture must be inserted into the document. You can choose any value more than 0 or one of the following constants, found in the "WR Parameters" theme:
When adding a picture expression, the optional size parameter sets whether the display rectangle will be kept or adjusted: The following two-part example shows a reference to a 4D project method inserted into a 4D Write area. The project method finds a customer’s related invoices and concatenates the invoice numbers and amounts. `Project method SHOW INVOICES The second part of this example shows the insertion of the SHOW INVOICES project method into area. When 4D Write displays or prints area, each invoice will appear in a separate line. WR INSERT EXPRESSION(area;"SHOW INVOICES") |
PROPERTIES
Product: 4D Write
HISTORY
Modified: 4D Write 6.7 SEE ALSO
WR GET REFERENCE ARTICLE USAGE
4D Write Language ( 4D Write v11.6) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||