Button Control Methods


The Button Control has the following methods. The button control methods are used with a pointer to the control in the following way: .METHOD(). Refer to Retrieving a Pointer to a Control for techniques for getting a pointer.


    Sets focus to the object.

  • .CHILD()

    Returns an object pointer to the Nth child of the object, or the child object called Object_Name.


    Returns a CR-LF separated list of all the child objects on the form, in tab order.


    Returns the number of objects that a container object contains. Returns zero if the object is not a container.

  • .CLASS()

    Returns the class (i.e., type) of the object.


    Returns the name of the control's container.

  • .DISABLE()

    Makes a form unable to receive focus. May also gray the object. Works with fields, buttons, check boxes, etc.

  • .ENABLE()

    Makes an object able to receive focus.

  • .EVAL()

    Interprets a string as Xbasic code.


    Returns .T. (TRUE) if the form supports the specified method.

  • .HIDE()

    Hides an object.

  • .KINDOF()

    Returns the kind of object represented by a form.

  • .NAME()

    Returns the object name.

  • .PUSH()

    Trigger's the button's OnPush event.


    Returns the reference expression to reconstruct a reference to the object.

  • .REFRESH()

    Forces a control to re-fetch data from its data source, and then to repaint itself. Works with all controls.

  • .REPAINT()

    Re-displays a control.


    Returns the session handle associated with the object.


    Sets the button's password.

  • .SHOW()

    Shows an object that may previously have been hidden using the .HIDE() method. Works with fields, buttons, check boxes, text, lines and most other objects on forms.

  • .TYPE()

    Returns the type of data bound to an object.

See Also