@RTInit
Syntax
@RTInit
@RTInit(MARGINLIST1)
@RTInit(MARGINLIST1;TABLIST2)
Description
This function initializes an empty RichText value. FLOATLIST MARGINLIST1 can be used to set margins, and FLOATLIST TABLIST2 can be used to set tab stops for this field.
MARGINLIST1:
1. Left margin in cm
2. Right margin in cm
3. First-line left margin in cm
TABLIST2:
Tab stop 1 in cm
Tab stop 2 in cm
…
Tab stop 20 in cm
(Only the required tab stops need to be specified.)
IMPORTANT:
The field flags; see @SetFieldFlags, of the return variable are set to 0.
This is necessary because RichText fields should not have the SUMMARY flag set.
If the RichText variable is later assigned to another variable, these flags are not transferred.
This can lead to problems if that variable belongs to a document, that is, if it is a field in a document, and is therefore saved with the SUMMARY flag.
Example: @RTInit
RT:=@RTInit;
Initializes a RichText value RT with default margins and no tab stops.
Example: @RTInit(MARGINLIST1)
MARGINLIST1:=2.54:18.00:5.12;
RT:=@RTInit(MARGINLIST1);
Initializes a RichText value RT with the left margin set to 2.54 cm, the right margin set to 18.00 cm, and the first-line left margin set to 5.12 cm.
Example: @RTInit(MARGINLIST1;TABLIST2)
MARGINLIST1:=2.54:18.00:5.12;
TABLIST2:=3.0:5.0:7.0;
RT:=@RTInit(MARGINLIST1;TABLIST2);
Initializes a RichText value RT with the left margin set to 2.54 cm, the right margin set to 18.00 cm, and the first-line left margin set to 5.12 cm. In addition, tab stops are set at 3.0 cm, 5.0 cm, and 7.0 cm.
Note : This text was machine-translated and may contain inaccuracies.
