@DeleteNoteByID
Syntax
@DeleteNoteByID(DBHANDLE1;NOTEID2);
@DeleteNoteByID(DBHANDLE1;NOTEID2;FNUPDFLAGS3);
Description
Deletes the document or documents with the NOTEID NOTEID2, or with the NOTEIDLIST NOTEID2, in the database with the DBHANDLE DBHANDLE1.
If the operation was completed successfully, the @Function result is the number of deleted documents.
If NOTEID2 is of type NUMBER or FLOAT, an @Error is returned in case of an error (legacy behavior of the @Function).
Options can be specified in FN FNUPDFLAGS3.
FNUPDFLAGS3:
To combine the options, the values must be added.
DEC Meaning
0001 Force the change in any case (default and should always be specified)
0512 Deletion without deletion stub
Example: @DeleteNoteByID(DBHANDLE1;NOTEID2)
DBHANDLE1:=@OpenDB("TEST.NSF");
NOTEID2:=28992;
@DeleteNoteByID(DBHANDLE1;NOTEID2);
DBHANDLE1:=@CloseDB(DBHANDLE1);
A database is opened, the document with NOTEID 28992 deleted and finally the database is closed again.
Note : This text was machine-translated and may contain inaccuracies.
