@SetNoteClass
Syntax
@SetNoteClass(NOTEHANDLE1;FN2);
Description
Sets the NOTECLASS FN2 (see NOTECLASSES) in the document identified by NOTEHANDLE NOTEHANDLE1.
Returns TRUE or an ERROR.
NOTECLASS:
DEC BIT Meaning
00000 XX No Notes no documents
00001 01 Documents data documents
00002 02 Policy Note about-database 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 the default document for each class
32767 01-15 Notes all documents
32766 02-15 All Non-Document Notes all non-data documents
To specify multiple note classes, add the values of the corresponding classes or build them using @BitVektor.
Example: @SetNoteClass(NOTEHANDLE1;FN2)
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);
FN2:=1;
Ret:=@SetNoteClass(NOTEHANDLE1;FN2);
NOTEHANDLE1:=@CloseNote(NOTEHANDLE1;0);
VIEWHANDLE:=@CloseView(VIEWHANDLE);
DBHANDLE:=@CloseDB(DBHANDLE);
A database is opened, a document is searched for and opened, its NOTECLASS is set to 1 (=Document), it is closed again, and finally the database is closed again.
Note : This text was machine-translated and may contain inaccuracies.
