ObjectModelVersion 

Description

Returns the version of the Web Target object model you are using.

Applies to

PSServerClass object

Syntax

psServer.ObjectModelVersion( )

Returns

String

Usage

At runtime, ObjectModelVersion returns the string value for the PowerBuilder Web Target object model. ObjectModelVersion returns “11.0” for applications created using PowerBuilder 11.

Examples

Example 1

The following example performs different logic depending on the version of the Web Target object model you are using:

version = psServer.ObjectModelVersion();
if (version == "10.0") {
// Perform 10.x-specific logic
}
else {
// Perform alternative logic
}