Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

& in Combobox

Status
Not open for further replies.

mjprust

Programmer
May 10, 2007
9
GB
Hi

I have a system in VFP8 which contains loads of dropdown lists which work fine except for one minor irritating problem.

If there is & in any of the values e.g. Hair & Body it displays correctly in the dropdown but displays doubled up e.g. Hair && Body if selected.

Does anyone know why this happens and more to the point how it can be fixed?

Thanks.

Malcolm Prust

 
Hi

Thanks for the replies I have been busy doing something else.

I thought that the problem may be because of some inherited processing in the class that I was using so I have gone back to basics.

On a basic form i have added a combobox and put the following processing in the INIT

this.addlistitem('Hair & Body',1,1)
this.addlistitem(str(1,6),1,2)

It works fine with Style set to 0 (dropdown combo) but as soon as you change that to 2 (dropdown list) the double & appears when the item is selected.

Again any clues or solutions would be appreciated

Malcolm
 
Mike

Thanks for trying!

I have had one other person who has been able to recreate the error but only in VFP 8.0

I have version 08.00.0000.2521 don't know if that makes a difference.

Malcolm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top