PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of ContactSource variables
  • Special cases
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
The ContactSource type is used to define the advanced characteristics of a source (or account) for the contacts (example: Google, Exchange, Facebook).
The characteristics of this source can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Versions 18 and later
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
Versions 22 and later
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
Example
// Lists the Google accounts of the phone
arrSource is array of ContactSource = ContactListSource()
IF NOT ErrorOccurred THEN
FOR EACH ELEMENT source OF arrSource
IF arrSource..Type = "com.google" THEN
// Process
END
END
END
Remarks

Properties specific to the description of ContactSource variables

The following properties can be used to handle the source of contacts:
Property nameType usedEffect
NameCharacter stringName of the source or account. This property can correspond to an email address for a Google account ("lastname.firstname@gmail.com" for example).
TypeCharacter stringType of the source or account ("com.google" for a Google account).
iPhone/iPad Notes:
  • The source cannot be modified.
  • A contact can only have one source.
Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Special cases

  • To list the sources of contacts on the device, use ContactListSource.
  • To reinitialize the content of a ContactSource variable, you have the ability to use VariableReset.
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
- ...
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment