Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Box with more column
Message
From
16/06/2002 07:12:16
 
 
To
16/06/2002 03:23:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00668989
Message ID:
00668999
Views:
23
Hello Sajjad.

Could you guide me how to show more than one column in list box.

You do it in exactly the same way that you do in a combo box. For example, if you are using a RowSourceType = 0-None, you can populate a 3 column list box like this in the list box's Init():
WITH This
	.Additem( 'Cleveland' )
	.List[.NewIndex, 2] = 'Ohio'
	.List[.NewIndex, 3] = '44122'
	.Additem( 'Caversham' )
	.List[.NewIndex, 2] = 'England'
	.List[.NewIndex, 3] = 'RG4 8BX'
	.Additem( 'Buffalo' )
	.List[.NewIndex, 2] = 'New York'
	.List[.NewIndex, 3] = '14228'
	.Additem( 'Milwaukee' )
	.List[.NewIndex, 2] = 'Wisconsin'
	.List[.NewIndex, 3] = '43225'
	.AddItem( 'Frostbite Falls' )
	.List[.NewIndex, 2] = 'Minnesota'
	.List[.NewIndex, 3] = '42666'
ENDWITH	
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform