WinStudio
IWSApplication interface
Returns a Visual Basic object that references a specified form.
Application.Forms( string )
Part |
Description |
string | Required. The name of the form. |
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.
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