ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

  • Required application feature
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
Deletes the current contact:
  • WINDEV from a Lotus Notes or Outlook address book.
    Caution: This function cannot be used to delete a contact from an Outlook Express address book.
  • Universal Windows 10 App from the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
Example
WINDEVUser code (UMC)
// Start a Lotus Notes session
SessionID is int
SessionID = EmailStartNotesSession("Password", "MarsServer", "email/julia.nsf", ...
"C:\Lotus Notes\julia.id")
// Find the contact to delete
IF ContactSearch(SessionID, "Smith", mContactLastName, "Adriana", mContactFirstName) = True THEN
// Delete contact
ContactDelete(SessionID)
Info("This contact was deleted")
ELSE
Info("No contact was found")
END
Universal Windows 10 App
gCurrentContact is Contact
garrContacts is array of Contact
garrContacts = ContactList(Null)
 
// Delete the selected contact
gCurrentContact = garrContacts[LOOP_CONTACTS]
 
IF YesNo(Yes, "Do you want to delete this contact?") = Yes THEN
// Delete contact
ContactDelete(gCurrentContact)
// Refresh contacts
RefreshContacts()
END
Syntax
WINDEVUser code (UMC)

Deleting a contact from a Lotus Notes or Outlook address book Hide the details

<Result> = ContactDelete(<Session identifier>)
<Result>: Boolean
  • True if the deletion was performed,
  • False otherwise. 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, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
Universal Windows 10 App

Deleting a contact from the device's contact list (Android, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDelete(<Contact>)
<Result>: Boolean
  • True if the deletion was performed,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact to delete.
Remarks
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
Business / UI classification: Business Logic
Component: wd280com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment