How to Create and Manipulate Multiple-Column List BoxesLast reviewed: April 30, 1996Article ID: Q127941 |
The information in this article applies to:
SUMMARYThis article discusses properties of multiple-column list or combo boxes, and describes how to create and manipulate them. All the tasks described require modifying the value of a property.
MORE INFORMATIONTo build a multiple-column list or combo box, modify the ColumnCount property of the object to the number of columns that will be on the list.
Aligning ColumnsColumns are aligned in a list box if one of the following conditions is met:
Retrieving the Value of a List ItemUse the LIST property. When used in conjunction with the LISTITEMID, the LIST property can specify the value of a selected item in a row of columns. For example:
List(Combo1.ListitemId,2) Hiding a ColumnTo hide a column in a list, set the width of this column to 0 in the COLUMNWIDTH property. The COLUMNWIDTH property accepts a comma-delimited list of items, as in this example:
CboCombo1.columnwidth="10,0,12" Linking the Value of the Combo Box to Column N OnlyUse the BOUNDCOLUMN property to link the value of a combo box to a column. The BOUNDCOLUMN property determines which column is bound to the value of a list box or combo box.
Linking the Selection to a Value that Is Not DisplayedTo link the selection to a value not displayed, combine the previous two methods. The following steps illustrate this method using the Form Designer:
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |