ToggleButtonState method: Utils class

Syntax

ToggleButtonState(&ButtonField)

Description

Use the ToggleButtonState method to toggle the current state of a toggle button and returns the new state as a Boolean value.

Parameters

Parameter Description

&ButtonField

Specifies the button field as a Field object.

Returns

A Boolean value.

Example

/* Get the &oToggleButtonField Field object first */
Local boolean &bState = (create PT_PAGE_UTILS:Utils()).ToggleButtonState(GetField());