PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Principle of the modification by using the Contact structure
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Modifies the current contact in:
  • WEBDEV - Server code the address book of a Lotus Notes or Outlook mailbox.
    Caution: This function cannot be used to read the last contact found in the address book of an Outlook Express messaging.
Example
WEBDEV - Server codeAjax
// Ouverture d'une session Lotus Notes
IDSession is int
IDSession = EmailStartNotesSession("MotDePasse", "ServeurMars", ...
"mail/julie.nsf", "C:\Lotus Notes\julie.id")
// Recherche du contact à modifier
IF ContactSearch(IDSession, "Dupont", mContactLastName, "Axelle", mContactFirstName) = True THEN
// Modification du numéro de téléphone de ce contact
mContact.MobilePhone = "06.15.14.84.52"
ContactModify(IDSession)
Info("Le numéro de téléphone a été modifié")
ELSE
Info("Aucun contact n'a été trouvé")
END
Syntax
WEBDEV - Server codeAjax

Modifying the current contact in the Lotus Notes or Outlook messaging Hide the details

<Result> = ContactModify(<Session identifier>)
<Result>: Boolean
  • True if the modification was performed.
  • False otherwise. To get the details of the error, use ErrorInfo with the errMessage constant.
<Session identifier>: entier
Identifier of session to use. This identifier is returned by one of the following functions: EmailStartNotesSession, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
Remarks

Principle of the modification by using the Contact structure

When reading a contact (with ContactRead, ContactFirst, ContactLast, ...), the data of this contact is updated in the Contact structure.
To modify the current contact, you must:
  1. Modify the values of the Contact structure.
  2. Confirm the changes with function ContactModify.
Component: wd270com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment