Script Method Argument
Script method calls in VBscript generally take the form:
objectName .methodName ( arg1, arg2, ...)
The function call syntax is a standard followed by several programming languages. However, the argument types in VBScript objects used for product scripting are restricted to the following:
- Primitive Types
- Named Arrays
- Named Functions
Primitive Types
Primitive types are the standard bool, int, float, double, and string.
Named Arrays
Named arrays are a special construct used very commonly and can be found in many recorded script samples.
A named array begins with Array("NAME:someName" followed by a collection of comma separated values which can be:
- Primitive values
- Arrays of primitive values
- Additional named arrays
- Keys, in the form "keyName:=" followed by a primitive value or function
Named Functions
Named functions are arrays which start with Array( and do not have a leading "NAME:name" item. They are always introduced by a key and can contain comma separated values of the following type:
- A primitive value
- A key (of the form "keyName:=") followed by
- A primitive value
- Another function (nested function)