CompareVersionInfo Method (IPIVersion interface)

                    

 

Compares the version of an object with the version information.

 

Syntax

object.CompareVersionInfo varEffectiveDate, Revision

The CompareVersionInfo method syntax has these parts:

Part

Description

object

An object expression that evaluates to an IPIVersion object.

varEffectiveDate

Date to compare with object.

Revision

Revision number to compare with object.

 

Remarks

The combination of EffectiveDate and RevisionNumber unambiguously defines a specific value. This method is useful for applications that must detect any object value changes. An application can save the EffectiveDate and RevisionNumber and compare them with the object returned from the database the next time the application is run.

 

This method returns the comparison result in a Long Integer. The result is interpreted as follows:

Result

Interpretation

Greater than 0

Object is older than passed date/revision.

Less than 0

Object is newer than passed date/revision.

equal to 0

Object the same version as passed date/revision.

 

The IPIVersion interface may be supported by any PI-SDK object. Currently, only PIModule supports this interface.

 

Enabling Operational Intelligence