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 has the following behavior:

Application server

Runtime behavior

ASP

Returns the string “1.0”

JSP

Returns the string “10.0” for the PowerBuilder 10.0 Web Target object model.

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 == "1.0") {
// Perform 1.x-specific logic
}
else {
// Perform alternative logic
}