ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Google functions / Google Contacts
  • Properties specific to gglPhoneNumber variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
gglPhoneNumber (Variable type)
In french: gglTelephone
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.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// 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(MyCallContact.Label + " : " + MyCallContact.Number)
END
Properties

Properties specific to gglPhoneNumber variables

The following properties can be used to handle gglPhoneNumber variables:
NameType usedEffect
CaptionCharacter stringDescription of the phone number.
NumberCharacter stringPhone number.
PrimaryCharacter string
  • True if the number corresponds to the main phone number of the contact,
  • False otherwise.
TypeInteger constantType of the phone number corresponding to one of the following variables:
  • gglAutre: Other number.
  • gglBureau: Business number.
  • gglHome: Home number.
  • gglFax: Fax number.
  • gglFaxDomicile: Home fax number.
  • gglWorkFax: Business fax number.
  • gglPager: Pager/beeper number.
  • gglMobileDevice: Mobile phone number.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/04/2024

Send a report | Local help