Function EN Version 1.90

@CloseNote

Note

Syntax

@CloseNote(NOTEHANDLE1;MODE2);

Description

Closes the document with the NOTEHANDLE NOTEHANDLE1 and returns the closed NOTEHANDLE. With FN MODE2 can be used to specify more detailed behavior.

MODE2:
0 = Do not save changes.
1 = Save changes.
2 = Save changes without changing $Revisions.
3 = Save changes without changing replication flags.
4   = Save changes without changing the EngineScript update-list field.
6 = Save changes without changing the EngineScript update-list field and without changing $Revisions.
7 = Save changes without changing the EngineScript update-list field or replication flags.
257= Save changes, but only if the SUMMARY-FIELD flags
can be set. (=256+1)
258= Option 257 and option 2 together. (=256+2)
259= Option 257 and option 3 together. (=256+3)
513= Save changes and sign document. (=512+1)
514= Option 513 and option 2 together. (=512+2)
515= Option 513 and option 3 together. (=512+3)

Example: @CloseNote(NOTEHANDLE1;MODE2)

DBHANDLE:=@OpenDB("TEST.NSF");
VIEWHANDLE:=@OpenView(DBHANDLE;"TEST VIEW");
VIEWPOSITION:=1:1:1:0:0:0:0:0:0:0;
NOTEHANDLE1:=@OpenNoteByPosition(DBHANDLE;VIEWHANDLE;VIEWPOSITION;NOTEHANDLE1);
NOTEHANDLE1:=@CloseNote(NOTEHANDLE1;0);
VIEWHANDLE:=@CloseView(VIEWHANDLE);
DBHANDLE:=@CloseDB(DBHANDLE);

It is a database opened, a document searched for, opened, dann without to saving closed and finally the database closed again.

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