CasewareDocs

GlobalParameters(function)

Instantiates GlobalParameters command object.

Compatibility

Available as of IDEA version 10.1

Syntax

GlobalParameters([optional] targetLocation As Integer) As Object

Parameter

targetLocation

[optional] Specifies the location of parameterization targets (files, folders, projects etc.).

Possible values:

0: default; the target location is identical to the macro execution location.

1: local; parameterization targets are local entities only.

2: server; parameterization targets are server entities only.

When targetLocation is not specified, value 0 (default) is used.

If the value of targetLocation is not within the specified range, an error is raised.

If the value of targetLocation is 1 (local) while the macro is executed on a server, an error is raised.

Example

Sub Main() 
Dim mc As Object
Dim parameterizerDefault As Object
Dim parameterizerDefault2 As Object
Dim parameterizerLocal As Object
Dim parameterizerServer As Object
Set mc = SmartContext.MacroCommands
Set parameterizerDefault = mc.GlobalParameters
Set parameterizerDefault2 = mc.GlobalParameters(0)
Set parameterizerLocal = mc.GlobalParameters(1)
Set parameterizerServer = mc.GlobalParameters(2)
GlobalParameters(function) | Caseware Docs