The
gglPhoneNumber type is used to describe and modify the phone number of a contact.
This type of variable is used by the
gglContact type.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see
Declaring a variable.
// Connection to Google
Cnt is gglConnection
Cnt.Email = "balthazar@gmail.com"
Cnt.Password = "qwerty"
Cnt.ApplicationName = "MyApp-01"
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
END
...
// Retrieve the array of contacts
arrContacts is array of gglContact
arrContacts = GglListContact(Cnt)
// Display the phone numbers of the first contact
MyContact is gglContact = arrContacts[1]
MyContactPhone is dynamic gglPhoneNumber
FOR EACH MyContactPhone OF MyContact.PhoneNumber
Trace(MyPhoneContact.Caption + ": " + MyPhoneContact.Number)
END
Remarks
Properties specific to the description of gglPhoneNumber variables
The following properties can be used to handle a gglPhoneNumber variable:
| | |
Name | Type used | Effect |
---|
Caption | Character string | Description of the phone number. |
Number | Character string | Phone number. |
Primary | Character string | - True if the number corresponds to the main phone number of the contact,
- False otherwise.
|
Type | Integer constant | Type of the phone number corresponding to one of the following variables:- gglOther: Other number.
- gglWork: Professional number.
- gglHome: Personal number.
- gglFax: Fax number.
- gglHomeFax: Personal fax number.
- gglWorkFax: Professional fax number.
- gglPager: Pager number.
- gglMobileDevice: Number of the mobile phone.
|