CurrentlyEnabled property (WinStudio scripts)

Applies To

IWSFormComponent interface

Definition

Returns a Boolean value indicating whether a designated form component is currently enabled or disabled.

Syntax

object.CurrentlyEnabled

  Part   Description
object Required. A reference to a form component object.

Remarks

If the return value is:

  • TRUE, the component object is currently enabled.
  • FALSE, the component object is currently disabled.

Example

Sub Main()
   If ThisForm.Components("ScriptButton").CurrentlyEnabled Then
      Application.ShowMessage("The Script button is currently enabled.")
   Else
      Application.ShowMessage("The Script button is currently disabled.")
   End If
End Sub