I suppose you are trying to use it in the incorrect way. This is the type, returned by the GetClientDisplaysInformation() function.
Please see the following example:
Code
ClientDisplaysInformation = GetClientDisplaysInformation();
For Each CurClientDisplaysInformation In ClientDisplaysInformation Do
Message(CurClientDisplaysInformation.DPI)
EndDo;
Rating:
4
Joined: Sep 1, 2014
Company: Smart ID Dynamics
Thanks. But the documentation offered by this site and syntax assistant of the platform are both wrong. Just read and you will see.
On site: What's new in mobile platform Window management. The option to handle the change of mobile device display parameters is now available. The OnChangeDisplaySettings event handler is implemented. The event occurs when the client application display parameters are changed. The Width and Height properties of the ClientDisplayInformation object store the actual values (which depend on the screen orientation). This feature was not provided. The platform could not detect the changes of display parameters. The Width and Height properties of the ClientDisplayInformation object stored constant (canonical) values. You can handle the display size changes caused by mobile device orientation changes or by connecting the mobile device to external displays. You can create applications with better usability.
In syntax assistant:
ClientDisplayInformation Properties:
DPI Height Width
Description:
Used to describe the display of the client device.
Availability:
Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).
ClientDisplayInformation DPI Usage:
Read only. Description:
Contains the display resolution (DPI).
Availability:
Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).
In the description of the GetClientDisplaysInformation() function it is said that it returns an array where elements have ClientDisplayInformation type. This is what I have demonstrated in the example: traversing the array and printing the property of its items.
You don't need to create ClientDisplayInformation object, you have it returned by the function.