Returns the version of the Web Target object model you are using.
PSServerClass object
psServer.ObjectModelVersion( )
String
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. |
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
}