GetFix  GetFocus

Chapter 10: PowerScript Functions

GetFixesVersion

Description

Returns the fix level for the current PocketBuilder execution context. For example, at maintenance level 1.5.2, the fix version is 2.

Applies to

ContextInformation objects

Syntax

servicereference.GetFixesVersion ( fixversion )

Argument

Description

servicereference

Reference to the ContextInformation service instance.

fixversion

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

Returns

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

Usage

Call this function to determine the current fix version.

Examples

Example 1

This example calls the GetFixesVersion function:

String ls_name

Constant String ls_currver = "8.0.3"

Integer li_majver, li_minver, li_fixver

ContextInformation ci


this.GetContextService ("ContextInformation", ci)

ci.GetMajorVersion(li_majver)

ci.GetMinorVersion(li_minver)

ci.GetFixesVersion(li_fixver)

IF li_majver <> 8 THEN

    MessageBox("Error", &

      "Must be at Version " + ls_currver)

ELSEIF li_minver <> 0 THEN

    MessageBox("Error", &

      "Must be at Version " + ls_currver)

ELSEIF li_fixver <> 3 THEN

    MessageBox("Error", &

      "Must be at Version " + ls_currver)

END IF

See also





Copyright © 2004. Sybase Inc. All rights reserved. GetFocus

View this book as PDF