Consultor Eletrônico



Kbase P175880: How to use the AddRange method to create more than one list item in the Microsoft CheckedListBox con
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/22/2010
Status: Unverified

GOAL:

How to use the AddRange method to create more than one list item in the Microsoft CheckedListBox control at a time

GOAL:

How to add a range of list items to the MS CheckedListBox control programatically

FACT(s) (Environment):

Windows
OpenEdge 10.2x

FIX:


DEFINE VARIABLE oCollection AS System.Windows.Forms.CheckedListBox+ObjectCollection NO-UNDO.

oCollection = NEW System.Windows.Forms.CheckedListBox+ObjectCollection(THIS-OBJECT:checkedListBox1).

oCollection:Add("Item 1").
oCollection:Add("Item 2").
oCollection:Add("Item 3").
oCollection:Add("Item 4").
oCollection:Add("Item 5").