ControlType
Previous Top Next

Returns the type of the control.
Using ControlType and GetControls you could do some actions on all controls which are with the same type.
Syntax: ControlType (Control Name)

Example:
This example disables all the buttons in Form1.
Sub Globals
      Dim names(0)
End Sub

Sub App_Start
      Form1.Show
      names() = GetControls("Form1")
      For i = 0 To ArrayLen(names())-1
            If ControlType(names(i)) = "Button" Then Control(names(i)).Enabled = false
      Next
End Sub