listbox

GCC Consulting gcc at optonline.net
Sat May 1 15:00:00 PDT 2004


I had want to present a listbox using 2 columns for selecting a month based on
12 months 
Jan-Dec.

I dim mon(12)(3,uplow) and used.  Note m is the month to be highlighted.

sl=listbox(mon,"","","","","6","2",m)

Based on the documentation, I expected this list box to be centered and have 6
rows and 2 columns.

					Jan  Jul
					Feb  Aug 
					Mar  Sep 
					Apr  Oct	
					May  Nov
					Jun  Dec

What actually happened was the listbox was wrapped around the screen 1 part at
the right and the balance on the left.  When I add row,col all I had was a
partial list showing the first letter of each element and not all of the
elements.

To almost get what I wanted, I used the following

sl=listbox(mon,"","","5","33","8","25",m)

This displays a listbox of 3 element columns and 4 element rows, which is fine.

To get a 2 column by 6 row list box

sl=listbox(mon,"","","","","9","20",m)

Wouldn't make more sense to have row & height actually be the values of the
array elements wanted?  

	sl=listbox(mon,"","","","","6","2")  displays a listbox as above.
 

Richard Kreiss 
GCC Consulting




More information about the Filepro-list mailing list