@RTFetchParagraph
Syntax
@RTFetchParagraph(HRT1;RTFH;RETSIG);
@RTFetchParagraph(HRT1;RTFH;RETSIG;REGRTPARAGRAPH);
Description
On each call, returns one paragraph of the RICHTEXT field HRT HRT1 in RT REGRTPARAGRAPH.
This paragraph is returned as plain RT, not as HUGERICHTEXT.
The fetch handle RTFH must initially have been initialized by @RTFetchInit.
FN RETSIG returns an identifier for the returned paragraph.
@RTSigTranslate can be used to convert this identifier into a more meaningful text.
Return value:
On success, a continued fetch handle RTFH is returned; it points to the next paragraph. Otherwise, or if the end of the RICHTEXT field has been reached, @ERROR is returned.
Example: @RTFetchInit(HRT1);
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.
