@AttachmentRename
Syntax
@AttachmentRename(NOTEHANDLE1;TEXT1;TEXT2);
@AttachmentRename(NOTEHANDLE1;TEXTLIST1;TEXTLIST2);
@AttachmentRename(NOTEHANDLE1;FN1;TEXT2);
@AttachmentRename(NOTEHANDLE1;FNLIST1;TEXTLIST2);
Description
All attachment fields ($File) of the document with the NOTEHANDLE NOTEHANDLE1, for the names specified in TEXT/TEXTLIST TEXT1/TEXTLIST1specified names are searched and, if there is a match (case-insensitive), the corresponding attachment is renamed to the name specified in TEXT/TEXTLIST TEXT2/TEXTLIST2 at the same position.
A position list FN/FNLIST FN1/FNLIST1 can also be specified.
In this case, the attachments whose positions are specified in FN/FNLIST FN1/FNLIST1 are renamed using the corresponding names from TEXT/TEXTLIST TEXT2/TEXTLIST2 benannt.
ReturnValue:
@Error or
a NUMBERLIST is returned which, corresponding to the lists FN1/FNLIST1/TEXT1/TEXTLIST1, contains 1 for success and 0 for failure.
Example: @AttachmentRename(NOTEHANDLE1;TEXT1;TEXT2)
TEXT1:="TEST1.ORG";
TEXT2:="TEST1.RNM";
Ret:=@AttachmentRename(NOTEHANDLE1;TEXT1;TEXT2);
The document with the NOTEHANDLE1 is searched for the attachment TEXT1 ("TEST1.ORG"); if it is found, it is renamed to TEXT2 ("TEST1.RNM"). If successful, Ret NUMBER is assigned NUMBER 1, otherwise 0 or @Error.
Note : This text was machine-translated and may contain inaccuracies.
