Reinitializes the
Group structure used to access a contact group in an Outlook or Lotus notes messaging.
// 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")
// Initialize the variables of the Group structure
GroupReset()
// Fill the variables for the new group
mGroup.Name = "My friends"
mGroup.Description = "Group of friends"
mGroup.NbContact = 3
mGroup.Contact[1] = "Peter"
mGroup.Contact[2] = "Paul"
mGroup.Contact[3] = "Jack"
// Add the group
IF GroupAdd(SessionID) = True THEN
Info("Group of contacts successfully added")
ELSE
Error("Error during the addition", ErrorInfo())
END
Remarks
The groups of contacts are not supported by Outlook 97. Therefore, no group of contacts can be reset in this version of Outlook.