GetMajorVersion – PB Docs 2017

GetMajorVersion

PowerScript function

Description

Returns the major version for the current PowerBuilder execution
context. For example, at maintenance level 11.5.1 the major version is
11.

Applies to

ContextInformation objects

Syntax

Argument

Description

servicereference

Reference to the ContextInformation service
instance.

majorversion

Integer into which the function places the major
version. This argument is passed by reference.

Return value

Integer.

Returns 1 if the function succeeds and -1 if an error occurs.

Usage

Call this function to determine the current major version.

Examples

This example calls the GetMajorVersion function:

See also

GetCompanyName

GetFixesVersion

GetHostObject

GetMinorVersion

GetName

GetShortName

GetVersionName


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x