Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Introduced in

Version:1.00

Description

Description:Creates a list of supported operators and type. Each field of array has the format: "x:name" (name is the operator or type name - in the case of an operator, the operand input type is included). Where x can be:
  • 't' - Type
  • 'n' - Null operator
  • 'u' - Unary operator
  • 'b' - Binary operator

Syntax

Syntax:supportInfo mask
Parameters:
  • mask: String - Can be an empty string, or one of array fields. In the latter case, the command returns an empty array, if the operator is not included in the list. Limited wildcard support is available. Type x may be replaced with *, meaning all types. Partial value matching may be used (for example, "abc*" - any operators starting with "abc" are reported, such as *:name, t:*, t:name*, or *:*).
Return Value:Array

Alternative Syntax

Syntax:supportInfo [mask, maintainCase] (V3.7+)
Parameters:
  • mask: String - Can be an empty string, or one of array fields. In the latter case, the command returns an empty array, if the operator is not included in the list. Limited wildcard support is available. Type x may be replaced with *, meaning all types. Partial value matching may be used (for example, "abc*" - any operators starting with "abc" are reported, such as *:name, t:*, t:name*, or *:*).
  • maintainCase: Boolean - If true, then the returned command names are in camelCase (as they are defined in the VBS engine). If false, then the command names are in lowercase.
Return Value:Array

Examples

Examples:
supportInfo "b:select*"; // returns ["b:ARRAY select SCALAR","b:ARRAY select BOOL"]
supportInfo "n:GETFOCUS"; // returns ["n:getfocus"]

supportInfo ["n:GETFOCUS",false]; // returns ["n:getfocus"] supportInfo ["n:GETFOCUS",true]; // returns ["n:getFocus"]

Additional Information

See also:
Multiplayer:
Problems:Handling of wildcards in version prior to V3.7 is unreliable.

Notes