Alternative Machine Handle Operator

An alternative syntax for the machine handle operator is the bracket form, like the following example shows.

[hMachine] Any4TestFunctionCall ()

Example

To execute the SYS_SetDir function on the target machine specified by the string sMachineA, you do this:
[sMachineA] SYS_SetDir (sDir)
The correct form of the invalid syntax shown above is:
// Invalid machine handle operator use
if ([sMachine]ProjX.DuplicateAlert.Exists())
  Print ("Duplicate warning on {sMachine} recipient.")
To execute the SYS_SetDir function on the host machine, you can do the following:
[hHost] SYS_SetDir (sDir)

You can also use this form of the machine handle operator with a function that is not being used to return a value or with a method.

Example

for each sMachine in lsMachine
	 [sMachine] FormatTest7 ()

Example

for each sMachine in lsMachine
  [sMachine] TextEditor.Search.Find.Pick