PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of Contact variables
  • Reinitialization
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
The Contact type is used to define the advanced characteristics of a contact found in the phone book.
The characteristics of this Contact can be defined and modified using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Versions 18 and later
iPhone/iPad This type of variable is now available for iPhone/iPad applications.
New in version 18
iPhone/iPad This type of variable is now available for iPhone/iPad applications.
iPhone/iPad This type of variable is now available for 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
// Ajoute un numéro de téléphone au contact "John Doe"
tabContact is array of Contact = ContactList()
IF NOT ErrorOccurred THEN
c is Contact
FOR EACH c OF tabContact
IF c.Name ~= " Doe " _AND_ c.FirstName ~= " John "
tel is Phone
tel.Number = " 0467010203 "
tel.Type = phoneHome
Add(c.PhoneNumber, tel)
ContactModify(c)
RETURN
END
END
END
Remarks

Properties specific to the description of Contact variables

The following properties can be used to handle a phone contact:
Property nameType usedEffect
AddressArray of AddressList of postal addresses of contact.
EmailArray of EmailAddressList of email addresses of contact.
EventArray of EventList of events associated with the contact.
FavoriteBoolean
  • True if the contact is found in the list of favorites,
  • False otherwise.
Versions 22 and later
ID
New in version 22
ID
ID
IntegerContact identifier.
Caution: This property is available in read-only mode.
InstantMessagingArray of InstantMessagingList of addresses of instant messaging of the contact.
Versions 22 and later
Universal Windows 10 App This property is not available.
New in version 22
Universal Windows 10 App This property is not available.
Universal Windows 10 App This property is not available.
LastNameCharacter stringFamily name of the contact.
DisplayedNameCharacter stringName of contact as it must be displayed on the phone (in the list of contacts or when receiving a call for example).
This name is automatically build from the information given for the contact, it cannot be modified. Typically, the displayed name corresponds to the concatenation of the first name and family name. If this information was not specified for the contact, the displayed name can correspond to the email address or to the phone number of the contact.
This property is available in read-only.
NoteArray of character stringsList of notes associated with the contact.
iPhone/iPadIOS WidgetMac Catalyst Only one note can be associated with the contact.
FirstNameCharacter stringFirst name of the contact.
SIPArray of SIPAddressList of SIP addresses of the contact.
iPhone/iPadIOS WidgetMac Catalyst This property is not available.
WebSiteArray of WebAddressList of Web addresses of contact.
SourceArray of ContactSourceList of contact sources (Google, Exchange, Facebook accounts) to which the contact belongs.
iPhone/iPadIOS WidgetMac Catalyst The source cannot be modified. The contact can only belong to one source.
PhoneArray of PhoneList of phone numbers of the contact.

Reinitialization

To reset the contents of an Variable of type Contact, you can use the VariableReset or ContactReset function.
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 version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment