DlgListBox.SetUpdate

DlgListBox.SetUpdate ( 

number  ControlID,

boolean Update = true )

Description

Sets the update state of a list box control. The update state controls whether or not the list box will be redrawn to reflect any changes that have been made. When a list box control's update state is set to false, any actions to modify it will not be visible to the user until this action is called to enable the update state (set to true).

Note: This action will only work if called from a screen's events and if the named control is on the current screen.

Parameters

ControlID

(number) The numeric ID of the list box control whose update state you want to set.

Update

(boolean) Whether to update (redraw) the list box control:

VALUE

DESCRIPTION

true

Redraw the list box to reflect any changes. (Default)

false

Do not redraw the list box, even if there are changes.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions