The
gglOrganization type is used to describe the companies and organizations to which the contact belongs.
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 companies of the first contact
MyContact is gglContact = arrContacts[1]
Org is dynamic gglOrganization
FOR EACH Org OF MyContact.Organization
Trace(Org.Name + ": " + Org.Caption)
END
Remarks
Properties specific to the description of gglOrganization variables
The following properties can be used to handle a gglOrganization variable:
| | |
Name | Type used | Effect |
---|
Caption | Character string | Description of the company. |
Name | Character string | Name of the company. |
Primary | Boolean | - 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.
|