Function EN Version 1.90

@OpenDesignNote

Database Design Note NotesSystem View

Syntax

@OpenDesignNote(DBHANDLE1;TITLE2;NOTECLASSES3;NOTEHANDLE4);

Description

Opens the first document in the database with the DBHANDLE DBHANDLE1, that matches the NOTECLASSES NOTECLASSES3 matches and has the TEXT TITLE2 and has the specified title, and returns the NOTEHANDLE NOTEHANDLE4 returned.

Note:
Changes to a design document may lead to unexpected results.
It is recommended to use this @Function only for read-only access, or only in an appropriate context.

NOTECLASSES3:
DEC   BIT   Meaning

00000   XX   No Notes   no documents
00001   01   Documents   data documents
00002   02   Policy Note   database policy document
00004   03   Form Note   form design documents
00008   04   View Note   view design documents
00016   05   Icon Note   icon document
00032   06   Design Collection Note   view documents
00064   07   ACL-Info-Note   ACL-Info-document
00128   08   Help-Index-Note   
00256   09   Help Note   help database document
00512   10   Filter Note   macro design documents
01024   11   Field Note   field design documents
02048   12   Replication Note   replication documents
04096   13   Private Design   private design documents

32768   16   Default Note of Each   Default document of each class

32767   01-15   Notes   All documents
32766   02-15   All Non-Document Notes   All non-data documents

(To specify multiple document classes, the values of the respective classes are added or combined using @BitVektor aufgebaut)

Example: @OpenDesignNote(DBHANDLE1;TITLE2;NOTECLASSES3;NOTEHANDLE4)

DBHANDLE1:=@OpenDB("TEST.NSF");
NOTEHANDLE4:=@OpenDesignNote(DBHANDLE1;"TEST FORM";4;NOTEHANDLE4);
NOTEHANDLE4:=@CloseNote(NOTEHANDLE4;0);
DBHANDLE1:=@CloseDB(DBHANDLE1);

A database is opened, the form document "TEST FORM" is searched for, and finally the database is closed again.

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