The ConnectListControl method creates a new attribute and connects it to the list view id. The attributeName is a string containing the numbers of the selected lines. The numbers are separated by blanks. Therefore, if value of the attribute after GetData is "3 5 6", the third, fifth, and sixth items are currently selected, or will be selected when SetData is executed. For further information, refer to ConnectTreeControl.


In the following example, the list view with ID 202 is associated with the attribute Customers. The first, 14th, and 29th entries in the list are preselected.

MyDialog~ConnectListControl(202, "Customers")
MyDialog~Customers="1 14 29"