PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 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
// Adds a phone number to the contact named "John Doe"
arrContact is array of Contact = ContactList()
IF NOT ErrorOccurred THEN
        c is Contact
        FOR EACH c OF arrContact
                IF c..LastName ~= " Doe " _AND_ c..FirstName ~= " John "
                        tel is Phone
                        tel..Number = " 0467010203 "
                        tel..Type = phoneHome
                        Add(c..Phone, 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
IntegerIdentifier of contact.
Caution: This property is available in read-only.
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/iPad 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/iPad 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/iPad The source cannot be modified. The contact can only belong to one source.
PhoneArray of PhoneList of phone numbers of the contact.

Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Reinitialization

To reinitialize the content of a Contact variable, you have the ability to use VariableReset or ContactReset.
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