NotesReset (Function) In french: NotesRAZ Creates an empty document in Lotus Notes. Remarks:
// Start a Lotus Notes session SessionID is int SessionID = EmailStartNotesSession("Password", "MarsServer", ... "mail\julia.nsf", "C:\Users\Julia\AppData\Local\Lotus\Notes\Data\user.id") ... // Create a document NotesReset(SessionID) // Modify the Lotus Notes items of this document NotesModifyItem(SessionID, "Subject", "My subject") NotesModifyItem(SessionID, "Name", "My name") NotesModifyItem(SessionID, "Body", "My text") // Save this document NotesSave(SessionID)
// Establish a Lotus Notes connection ConnectionID is int ConnectionID = NotesOpenConnection("Password", "MarsServer", ... "C:\Users\Julia\AppData\Local\Lotus\Notes\Data\user.id") // Specify the Lotus Notes database to use DatabaseID is int DatabaseID = NotesOpenDatabase(DatabaseID, "MyDatabase.nsf") ... // Create a document NotesReset(DatabaseID) // Modify this document NotesModifyItem(DatabaseID, "Subject", "My subject") // Save this document NotesSave(DatabaseID)
Syntax
<Result> = NotesReset(<Session identifier>)
<Result>: Boolean - True if the empty document was created,
- False otherwise. If an error occurs, the ErrorOccurred variable is set to True.
To get more details on the error, use ErrorInfo with the errMessage constant.
<Session identifier>: Integer Session ID to be used. This identifier is returned by EmailStartNotesSession or NotesOpenDatabase.
This page is also available for…
|
|
|
|