Function EN Version 4.50

@OpenAgent

Agent Database NotesSystem

Syntax

@OpenAgent(DBHANDLE1;TITLE2);

Description

Opens in the database with the DBHANDLE DBHANDLE1 the agent/filter named TEXT TITLE2.
This @Function is available only as of Notes version 4.5.

Return value:
If the @Function is executed successfully, an AGENTHANDLE is returned; otherwise @ERROR.

Example: @OpenAgent(DBHANDLE1;TITLE2);

DBHANDLE1:=@OpenDB("TEST.NSF");
AGENTHANDLE:=@OpenAgent(DBHANDLE1;"Agent name");
AGENTHANDLE:=@CloseAgent(AGENTHANDLE);
DBHANDLE1:=@CloseDB(DBHANDLE1);

A database is opened, the agent named "Agent name" is opened, closed again, and finally the database is closed again.

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