Function EN Version 4.50

@RTAttachmentIconChange

RichText Text

Syntax

@RTAttachmentIconChange(RT1;TEXT1;TEXT2);
@RTAttachmentIconChange(RT1;TEXTLIST1;TEXTLIST2);

Description

The variable RT RT1 is searched for file icons that refer to the file attachments specified in TEXT/TEXTLIST TEXT1/TEXTLIST1.
Any file icons found are renamed to the names specified in TEXT/TEXTLIST TEXT2/TEXTLIST2, corresponding to TEXT/TEXTLIST TEXT1/TEXTLIST1.
The icon itself is also replaced with an icon in OS/2 style.

Return value:
@Error in case of an error, or the modified variable RT RT1.

Example: @RTAttachmentIconChange(RT1;TEXT1;TEXT2)

TEXT1:="SEARCH.FIL";
TEXT2:="FOUND.FIL";
RT1:=@RTAttachmentIconChange(RT1;TEXT1;TEXT2);

The variable RT1 is searched for file icons that refer to the file "SEARCH.FIL" (TEXT1).
The icons found are redirected to the file "FOUND.FIL" (TEXT2), and the icon itself is replaced with an icon in OS/2 style.
The modified variable RT1 is then assigned back to the variable RT1.

Example: @RTAttachmentIconChange(RT1;TEXTLIST1;TEXTLIST2)

TEXTLIST1:="SEARCH1.FIL":"SEARCH2.FIL";
TEXTLIST2:="FOUND1.FIL":"FOUND2.FIL";
RT1:=@RTAttachmentIconChange(RT1;TEXTLIST1;TEXTLIST2);

The variable RT1 is searched for file icons that refer to the file "SEARCH1.FIL" (element 1 of TEXTLIST1). The icons found are redirected to the file "FOUND1.FIL" (element 1 of TEXTLIST2), and the icon itself is replaced with an icon in OS/2 style.
At the same time:
The variable RT1 is searched for file icons that refer to the file "SEARCH2.FIL" (element 2 of TEXTLIST1). The icons found are redirected to the file "FOUND2.FIL" (element 2 of TEXTLIST2), and the icon itself is replaced with an icon in OS/2 style.
The modified variable RT1 is then assigned back to the variable RT1.

Note : This text was machine-translated and may contain inaccuracies.