Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicate Ampersand (&) character in ComboBox . DisplayValue
Message
From
08/04/2003 18:24:47
Sasha Burkich
Senior Systems Analyst
British Columbia, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Duplicate Ampersand (&) character in ComboBox . DisplayValue
Miscellaneous
Thread ID:
00775275
Message ID:
00775275
Views:
79
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
Next
Reply
Map
View

Click here to load this message in the networking platform