Returns the version of the Web Target object model you are using.
PSServerClass object
psServer.ObjectModelVersion( )
String
At runtime, ObjectModelVersion returns the string value for the PowerBuilder Web Target object model. ObjectModelVersion returns “11.0” for applications created using PowerBuilder 11.
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
}