SwitchMode Method

Sets the mode of the WorkSpace.

Syntax

object.SwitchMode bMode

Properties

The SwitchMode method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

bMode

Long. The mode to set the WorkSpace to.
Valid entries:

1 – Configure
4 – Run

Remarks

If possible, always make this call the last line in your script. Note that when the SwitchMode method is used from anywhere other than a toolbar, the call must be the last line in the script. Otherwise, you may experience unexpected behavior when executing the script. Otherwise, you may experience unexpected behavior when executing the script.

If the SwitchMode method is made from a toolbar and is not the last line in your script, be certain that the operation is complete before the rest of the script continues to execute.

 

Example

Applies To