Setup Factory 10

DlgListBox.SetUpdate

DlgListBox.SetUpdate

This is the first topic This is the last topic  

DlgListBox.SetUpdate

This is the first topic This is the last topic  

OverviewExamples

DlgListBox.SetUpdate (

number ControlID,

boolean Update = true )

Example 1

DlgListBox.SetUpdate(CTRL_LIST_BOX, false);

Sets the list box control with control id "CTRL_LIST_BOX" to not update.

Example 2

DlgListBox.SetUpdate(CTRL_LIST_BOX, true);

Sets the list box control with control id "CTRL_LIST_BOX" to update.

Example 3

DlgListBox.SetUpdate(nControlID, false);

 

for count = 1, 10 do

   DlgListBox.InsertItem(nControlID, -1, "Inserted Item " .. count);

end

 

DlgListBox.SetUpdate(nControlID, true);

This example disables updating of the list box control whose control id is stored in the variable "nControlID", adds ten items, and enables updating.

See also: Related Actions


Learn More: Indigo Rose Software - Setup Factory - Buy Now - Contact Us