Appendix H. Other Common Functions And Sub Routines For Windows Systems; Ffirstmatch(); Windows Systems; Other Common Functions And Sub Routines For Windows Systems - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

Appendix H. Other common functions and sub routines for

Windows systems

Prerequisite Scanner has a set of other common functions and sub routines that are
used in various files..
outlines the other common functions and sub routines.

ffirstMatch()

Gets the first match of the search string in the array.
Purpose
This function uses a regular expression to search for the pattern, which is passed
as an input parameter, in the array that is also passed as an input parameter. When
it finds the first match of the pattern in the array, it adds the value from the array
to the scripting dictionary object.
Parent functions
Syntax
ffirstmatch(patt,arr)
© Copyright IBM Corp. 2009, 2012
Table 37. Other common functions and sub routines for Windows systems
Function or sub routine
"ffirstMatch()"
"getValue()" on page 132
"removeSpecialCharacters()" on page 133
"versionCompare()" on page 133
Table 38. Parent functions calling ffirstMatch()
Parent Function, Script
ud620db2level(expect, real) in
DB2_Version_compare.vbs
oslevelcompare(expect, real) in
OS_Version_compare.vbs
Description
Gets the first match of the search string in
the array.
Gets the available disk space for a specified
directory.
Removes the trademark or other special
characters to make comparisons easier.
Parses the input parameters that represent
the actual and expected values for a
prerequisite property and compares them to
determine whether the prerequisite property
passes the prerequisite check. The function
expects dot-separated version strings as
input parameters, for example, 1.0.0.4, 2.3,
3.40.26.7800 or 2.3.*.
Description
Compares the real and expected values for
the DB2 version prerequisite property.
Compares the real and expected values for
the OS version prerequisite property.
131

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Prerequisite Scanner and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents