@RTInitEmpty
Syntax
@RTInitEmpty
Description
This function initializes an absolutely empty RichText value (0 bytes).
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: @RTInitEmpty
RTout:=@RTInitEmpty;
RTF:=@RTFetchInit(RTinp);
WHILE(@CheckHandle(RTF))
{
RTF:=@RTFetchParagraph(RTinp;RTF;Sig;RT);
SigText:=@RTSigTranslate(Sig;1);
IF(@CheckHandle(RTF))
{
RTout:=@RTAddParagraph(RT;RTout);
}
}
The contents of the HRT variable RTinp are copied paragraph by paragraph into the new HRT field RTout.
Note : This text was machine-translated and may contain inaccuracies.
