Article ID: 121723
Article Last Modified on 11/17/2003
PUBLIC ARRAY test(1,2)
* Define the two column array
SELECT cust_id, company FROM customer INTO ARRAY test
THIS.RowSource='test' && Ties the ListBox to the array
THIS.RowSourceType=5 && Tells the ListBox what type of data its using
THIS.ColumnCount=2 && In order to get other columns to show, you
&& must have a column count greater than 1
THIS.BoundColumn=2
THIS.ColumnWidths= '0,' +STR(THIS.Width) && Setting the ColumnWidth
&& property to 0, <some value> is the key to
&& displaying the second column.
SET DEFAULT to <FoxPro_directory>\tutorial
SELECT company, city, state FROM customer INTO ARRAY a3colmns
Additional query words: FoxUnix FoxMac FoxDos FoxWin VFoxWin 2.50 2.50a 2.50b 2.50c 2.60a different other many specific only multicolumn multi-column multi-dimension multiple-dimension dimension genscrn.prg power tool
Keywords: kbcode KB121723