GraphEnabled property (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Enables/Disables the Graph option on the Actions menu for the specified IDO collection object, or returns a Boolean value indicating whether graphing is enabled for the collection.

Set Syntax

object.GraphEnabled = Boolean

  Part   Description
object Required. A reference a valid IDO collection object.
Boolean Required. Determines whether the Graph option is enabled:
  • True: Enables the Graph option.
  • False: Disables the Graph option.
  • In this case, the Graph option does not appear on the Actions menu.

Get Syntax

object.GraphEnabled

  Part   Description
object Required. A reference to a valid IDO collection object.

Remarks

In the get syntax, a return value of:

  • TRUE indicates that the Graph option is enabled on the Actions menu.
  • FALSE indicates that the Graph option is disabled and does not appear on the Actions menu.

Example

Sub Main()
   If ThisForm.PrimaryIDOCollection.GraphEnabled Then
      ThisForm.PrimaryIDOCollection.GraphEnabled = False
      Application.ShowMessage("Graphing is now disabled for this collection.")
   Else
      ThisForm.PrimaryIDOCollection.GraphEnabled = True
      Application.ShowMessage("Graphing is now enabled for this collection.")
   End If
End Sub