Forms property (WinStudio scripts)

Applies To

IWSApplication interface

Definition

Returns a Visual Basic object that references a specified form.

Syntax

Application.Forms( string )

  Part   Description
string Required. The name of the form.

Remarks

The specified form must be open in WinStudio or must be accessible from a form that is open. However, the form need not have focus.

The Visual Basic Set instruction assigns an object reference to a variable.

Example

Sub Main()
    ' Display the value in the InitialCommand variable on the BGTaskDefinitions form
    Dim initCmd As IWSVariable
    initCmd = Application.Forms("BGTaskDefinitions").Variables("InitialCommand")
    Application.ShowMessage(initCmd.Value)
End Sub