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