@SetLinkListProperties
Syntax
@SetLinkListProperties(DOCLINKLIST1;POSITION2;TDRID3;UIDLISTVIEW4;UIDLISTNOTE5);
Description
Sets the properties of the document link at position FN POSITION2 in the VSPECLINKLIST DOCLINKLIST1.
TD TDRID3 is the replica ID of the DB to which the document link should point.
(If @AnyAllDay is specified here, the document link points to the current DB.)
UIDLIST UIDLISTVIEW4 is the UID of the View in which the document to which the document link should point can be found.
(If this UID consists only of zeros (@ZeroUID) is specified, no View is used.)
UIDLIST UIDLISTNOTE5 is the UID of the document to which the document link should point.
On success, the return value is the modified VSPECLINKLIST; otherwise @ERROR.
Example: @SetLinkListProperties(DOCLINKLIST1;POSITION2;TDRID3;UIDLISTVIEW4;UIDLISTNOTE5);
DBHANDLE1:=@OpenDB("TESTDB\\TESTDB1.NSF");
noteh1:=@OpenNoteByID(DBHANDLE1;8462;noteh1);
Ret:=@GetLinkListProperties($Links[noteh1];1;TDRID3_1;UIDLISTVIEW4_1;UIDLISTNOTE5_1);
Ret:=@GetLinkListProperties($Links[noteh1];2;TDRID3_2;UIDLISTVIEW4_2;UIDLISTNOTE5_2);
$Links[noteh1]:=@SetLinkListProperties($Links[noteh1];2;TDRID3_1;UIDLISTVIEW4_1;UIDLISTNOTE5_1);
$Links[noteh1]:=@SetLinkListProperties($Links[noteh1];1;TDRID3_2;UIDLISTVIEW4_2;UIDLISTNOTE5_2);
noteh1:=@CloseNote(noteh1;1);
DBHANDLE1:=@CloseDB(DBHANDLE1);
The DB "TESTDB\\TESTDB1.NSF" and the document with NOTEID 8462 are opened, and the properties of the first document link from VSPECLINKLIST $Links[noteh1] are swapped with the properties of the second document link from VSPECLINKLIST $Links[noteh1].
After that, the DB and the document are closed again (and saved).
Note : This text was machine-translated and may contain inaccuracies.
