Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a Combo box show a value not in the array?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00829585
Message ID:
00832324
Vues:
44
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform