Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox display problem
Message
From
01/05/2018 10:09:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Combobox display problem
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01659661
Message ID:
01659661
Views:
73
Hi all,

Another question I should know the answer to.

I have a ComboBox with two columns. When I select a item from the list it only displays the first column's data in the box. I would like it to display the entire line (all columns data). Is there a property(s) that I maybe in need.

Here is what I am doing so far. After this, I am adding via AddListItem the rows as two columns.
	WITH THISFORM.cboStatus
	    .ENABLED 		= llStatus
	    .TOP 			= THISFORM.HEIGHT - .HEIGHT
	    .LEFT			= 0
	    .WIDTH 		= THISFORM.WIDTH
	    .STYLE		= 2
	    .TAG			= "TW"
	    .COLUMNCOUNT	= 2
	    .COLUMNWIDTHS	= "100,"+TRANSFORM(THISFORM.WIDTH - 110)
	    .COLUMNLINES	= .T.
	    .ITEMTIPS		= .T.
Greg Reichert
Next
Reply
Map
View

Click here to load this message in the networking platform