Function EN Version 4.50

@RTFetchInit

RichText

Syntax

@RTFetchInit(HRT1);

Description

Initializes paragraph-by-paragraph retrieval of the RICHTEXT variable HRT HRT1.

Return value:
On success, a fetch handle for the HRT field HRT1 is returned; otherwise @ERROR is returned.
This fetch handle must be passed to @RTFetchParagraph and is then further modified by that @Function.

Example: @RTFetchInit(HRT1);

RTout:=@RTInitEmpty;

RTF:=@RTFetchInit(RTinp);
WHILE(@CheckHandle(RTF))
{
   RTF:=@RTFetchParagraph(RTinp;RTF;Sig;RT);
   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.