GetVersionName
PowerScript function
Description
Gets complete version information for the current PowerBuilder
execution context. A complete version includes a major version, a minor
version, and a fix level (such as 8.0.3).
Applies to
ContextInformation objects
Syntax
1 |
servicereference.GetVersionName ( name ) |
Argument |
Description |
---|---|
servicereference |
Reference to the ContextInformation service |
name |
String into which the function places the version |
Return value
Integer.
Returns 1 if the function succeeds and -1 if an error occurs.
Usage
Call this function to determine the maintenance level of the current
context.
Examples
This example calls the GetVersionName function. ci is an instance
variable of type ContextInformation:
1 2 3 4 5 6 7 8 9 10 |
String ls_name String ls_version Constant String ls_currver = "8.0.3" GetContextService("ContextInformation", ci) ci.GetVersionName(ls_version) IF ls_version <> ls_currver THEN MessageBox("Error", & "Must be at Version " + ls_currver) END IF |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest