unitMGTOG()
Adds together the contents of an array to obtain the total number of MBs.
Purpose
This function converts the value of each index in the array to MBs and adds them
together.
Syntax
unitMGTOG(arr)
Input parameters
Array arr
Return values
String unitMGTOG
varToString()
Creates a string representation of a variable. The variable to check can be a string,
number, scripting dictionary object, array, or CheckItem object.
Purpose
This function checks the data or object type of the variable and calls the relevant
function to create a string representation for that data or object type.
Syntax
varToString(var)
Input parameters
Variable var
Return values
String vartoString
Contains the array.
Returns the total of the contents of the array in MBs and appends "MB" to the
total.
Table 33. Called function for each variable type.
Variable type
Array
CheckItem object
Scripting dictionary object
The supported variables are: string, number, scripting dictionary object, array,
or CheckItem object
Returns a string representation of the variable including returned values from
any called functions where required.
Called function
"arrayToString()" on page 114
"checkItemToString()" on page 116
"dictionaryToString()" on page 116
Appendix E. Common functions for Windows systems
125
Need help?
Do you have a question about the Prerequisite Scanner and is the answer not in the manual?
Questions and answers