ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Deletes the current contact:
  • AndroidAndroid Widget iPhone/iPad from the list of contacts on the device (Android, iPhone or iPad).
Example
AndroidAndroid Widget iPhone/iPad
gContactEnCours is Contact
gtabContacts is array of Contact 
gtabContacts = ContactList(Null)

// Supprime le contact sélectionné
gContactEnCours = gtabContacts[ZR_CONTACTS]

IF YesNo(Yes, "Voulez-vous vraiment supprimer ce contact ?") = Yes THEN
	// Suppression du contact
	ContactDelete(gContactEnCours)
	// Rafraîchit les contacts
	RafraîchitContacts()
END
Syntax
AndroidAndroid Widget iPhone/iPad

Delete a contact from the device contact list (Android, iPhone, iPad) Hide the details

<Result> = ContactDelete(<Contact>)
<Result>: Boolean
  • True if deleted successfully,
  • 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.
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
- ...
Business / UI classification: Business Logic
Component: wd300com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help