Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a Combo box show a value not in the array?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00829585
Message ID:
00832324
Views:
42
>Hi Pat.
>
>I ended up using Marcia's great suggestion and it works perfectly.
>
>Glad I was able to help < s >.

Marcia:

You solution was an answer to me as well. I made a slight adjustment to add color to the combo item if it is not in the list. Here is the code I used in the refreshdisplayvalue method.
local lcControlSource
	with this
		if !empty(.cControlSource)
			lcControlSource = .cControlSource
			.displayValue = &lcControlSource
			* If not in the list, display it in orange
			this.forecolor = iif(this.listitemid = 0, 32760, 0)
		endif
	endwith
Thanks again, Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform