PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Deletes the current contact:
  • WINDEVWEBDEV - Server codeReports and Queries from the address book of a Lotus Notes or Outlook messaging.
    Caution: This function cannot be used to delete a contact from the address book of an Outlook Express messaging.
  • Versions 16 and later
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App from the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    New in version 16
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App from the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App from the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
Versions 16 and later
Android This function is now available for the Android applications.
New in version 16
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser 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 the contact
ContactDelete(SessionID)
Info("This contact was deleted")
ELSE
Info("No contact was found")
END
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App
gCurrentContact is Contact
garrContacts = ContactList(Null)

// Deletes the selected contact
gCurrentContact = garrContacts[LOOP_CONTACTS]

IF YesNo(Yes, "Do you want to delete this contact?") = Yes THEN
// Delete the contact
ContactDelete(gCurrentContact)
// Refreshes the contacts
RefreshContacts()
END
Syntax
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC)

Deleting a contact from the Lotus Notes or Outlook messaging Hide the details

<Result> = ContactDelete(<Session Identifier>)
<Result>: Boolean
  • True if the deletion was performed,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Session Identifier>: Integer
Identifier of session to use. This identifier is returned by EmailStartNotesSession, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
Versions 17 and later
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App Caution: Syntax available from version 170069

Deleting a contact from the list of contacts on the device (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDelete(<Contact>)
<Result>: Boolean
  • True if the deletion was performed,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact to delete.
New in version 17
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App Caution: Syntax available from version 170069

Deleting a contact from the list of contacts on the device (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDelete(<Contact>)
<Result>: Boolean
  • True if the deletion was performed,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact to delete.
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App Caution: Syntax available from version 170069

Deleting a contact from the list of contacts on the device (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDelete(<Contact>)
<Result>: Boolean
  • True if the deletion was performed,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact to delete.
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App
Versions 16 and later
Warning
From version 17 (69), this syntax is kept for backward compatibility.
New in version 16
Warning
From version 17 (69), this syntax is kept for backward compatibility.
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Deleting a contact from the list of contacts on the device (before Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDelete(<Type of Contact>)
<Result>: Boolean
  • True if the deletion was performed,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Type of Contact>: Integer constant
Type of contact to delete. By default, this parameter corresponds to the contactPhone constant.
Remarks
Versions 22 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
New in version 22
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
Related Examples:
WM Managing Contacts Cross-platform examples (WINDEV Mobile): WM Managing Contacts
[ + ] This example presents the management of contacts for Android et iOS.
It is used o:
- list the contacts found on the phone
- call the contacts
- send SMSs to the contacts
- ...
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Android wd230android.jar
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment