@ACLSetAdminServer
Syntax
@ACLSetAdminServer(hACL;ADMINSERVERNAME);
Description
This @Function sets the Administration Server TEXT ADMINSERVERNAME in a previously loaded in-memory copy of an ACL, represented by the VSPECHACL handle hACL.
VSPECHACL hACL:
A VSPECHACL handle as returned by @ReadACL.
TEXT ADMINSERVERNAME:
The name of the Administration Server to be set.
Return:
If an error occurs, the @Function returns @ERROR; otherwise, it returns TRUE.
Example: @ACLSetAdminServer(HACL;ADMINSERVERNAME);
dbPath:="TEST\\TESTDB1.NSF";
dbh:=@OpenDB(dbPath);
hACL:=@ReadACL(dbh);
ADMINSERVERNAME:="TEST-SERVER/ACME/DE";
Ret:=@ACLSetAdminServer(hACL;ADMINSERVERNAME);
Ret:=@WriteACL(dbh;hACL);
hACL:=@ReleaseACL(hACL);
dbh:=@CloseDB(dbh);
The example opens the database TEST\TESTDB1.NSF and creates an in-memory copy of its ACL.
It then sets TEST-SERVER/ACME/DE as the Administration Server in this ACL copy using @ACLSetAdminServer.
The modified ACL is then written back to the database using @WriteACL.
Finally, the ACL handle is released and the database is closed.
Note : This text was machine-translated and may contain inaccuracies.
