Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicate Ampersand (&) character in ComboBox . DisplayValue
Message
De
08/04/2003 18:24:47
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Duplicate Ampersand (&) character in ComboBox . DisplayValue
Divers
Thread ID:
00775275
Message ID:
00775275
Vues:
78
Has anybody seen this kind of behavior?

If you have a combobox on the form, Style - DropDown List and if any of the items have "&" character in it, when that item is selected, combobox shows one more "&" character next to "&" character that was already there.

It seems that VFP 7 shows the text in combo box properly. I've noticed this only in VFP8.

Clear as mud? Let me demonstrate.

Just select the fourth item in the list: "dd &". When I select it, I see: "dd &&"
PUBLIC oForm1
oForm1 = NewObject("TestCombo")
oForm1.Show
RETURN

DEFINE CLASS TestCombo AS form
	Height = 100
	Width = 361
	DoCreate = .T.
	AutoCenter = .T.
	Caption = "Testing & character in combo"
	Name = "Form1"

	ADD OBJECT combo1 AS combobox WITH ;
		RowSourceType = 1, ;
		RowSource = "aaa,bbb,ccc,dd &,ee & ee", ;
		Height = 24, ;
		Left = 48, ;
		Style = 2, ;
		Top = 24, ;
		Width = 132, ;
		Name = "Combo1"

ENDDEFINE
Sasha Burkich
Consultant
Victoria, BC
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform