PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
  • Creating a contact (without using the creation window)
  • 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
Displays the window for contact creation of the native application for contact management found on the device (Android, iPhone or iPad, Universal Windows).
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
AndroidAndroid Widget iPhone/iPad
// Create a contact and initialize the Contact structure
IF ContactCreate() = True THEN
Info(StringBuild("The contact %1 was added to your list of contacts: ", ...
 mContact.Name))
END
AndroidAndroid Widget iPhone/iPad
gCurrentContact is Contact
// Create a contact in the default window
IF ContactCreate() = True THEN
// Refreshes the list of contacts displayed in a looper
nSubscript is int = LOOP_CONTACTS
LooperDeleteAll(LOOP_CONTACTS)
// List of contacts
garrContacts = ContactList()
// Sort the contacts
ArraySort(garrContacts, asMember, "+Name")
// Add into the looper
FOR EACH tContact OF garrContacts
LooperAddLine(LOOP_CONTACTS, tContact..LastName, tContact..FirstName)
END
END
Syntax
Versions 17 and later
Caution: Syntax available from version 170069

Creating a contact and initializing the Contact variable (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactCreate([<Contact>])
<Result>: Boolean
  • True if a contact was created,
  • False otherwise. To find out the error details, use ErrorInfo.
Versions 22 and later
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
New in version 22
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
<Contact>: Contact variable
Name of the Contact variable containing the data corresponding to the created contact.
New in version 17
Caution: Syntax available from version 170069

Creating a contact and initializing the Contact variable (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactCreate([<Contact>])
<Result>: Boolean
  • True if a contact was created,
  • False otherwise. To find out the error details, use ErrorInfo.
Versions 22 and later
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
New in version 22
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
<Contact>: Contact variable
Name of the Contact variable containing the data corresponding to the created contact.
Caution: Syntax available from version 170069

Creating a contact and initializing the Contact variable (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactCreate([<Contact>])
<Result>: Boolean
  • True if a contact was created,
  • False otherwise. To find out the error details, use ErrorInfo.
Versions 22 and later
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
New in version 22
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
<Contact>: Contact variable
Name of the Contact variable containing the data corresponding to the created contact.
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Creating a contact and initializing the Contact variable (before Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactCreate()
<Result>: Boolean
  • True if a contact was created,
  • False otherwise. To find out the error details, use ErrorInfo.
Versions 22 and later
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
New in version 22
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
Remarks

Special cases

  • If the user creates a new contact, the Contact structure or the Contact variable is automatically filled with the information relative to this new contact.
  • AndroidAndroid Widget iPhone/iPad ContactCreate is a locking function until the user validates or cancels the window for contact creation.
  • Versions 22 and later
    Universal Windows 10 App ContactCreate is a non-locking function.
    New in version 22
    Universal Windows 10 App ContactCreate is a non-locking function.
    Universal Windows 10 App ContactCreate is a non-locking function.
  • ContactCreate can be used in the emulator. It cannot be used in the simulator.

Creating a contact (without using the creation window)

To create a new contact by programming (without opening any window):
  1. Describe the contact in the Contact structure or in the Contact variable.
  2. Use ContactAdd.
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
Android wd230android.jar
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment