type is used to describe the companies and organizations to which the contact belongs.
This type of variable is used by the gglContact
: 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 = "firstname.lastname@example.org"
Cnt.Password = "qwerty"
Cnt.ApplicationName = "MyApp-01"
IF GglConnect(Cnt) = False THEN
// Retrieve the array of contacts
arrContacts is array of gglContact
arrContacts = GglListContact(Cnt)
// Display the companies of the first contact
MyContact is gglContact = arrContacts
Org is dynamic gglOrganization
FOR EACH Org OF MyContact.Organization
Trace(Org.Name + ": " + Org.Caption)
Properties specific to the description of gglOrganization variables
The following properties can be used to handle a gglOrganization variable:
|Caption||Character string||Description of the company.|
|Name||Character string||Name of the company.|
- True if the company corresponds to the main company of the contact,
- False otherwise.
|Title||Character string||Title of the contact in the company.|
|Type||Integer constant||Type of the company corresponding to one of the following variables:|
- gglOther: Company to which the contact is linked in a non-professional way.
- gglWork: Company to which the contact is linked in a professional way.