![]() |
Adding Items to ComboBox with an "&" |
Post Reply ![]() |
Author | |
DDJJ ![]() Senior Member ![]() Joined: 13 December 2004 Status: Offline Points: 143 |
![]() ![]() ![]() ![]() ![]() Posted: 17 December 2004 at 1:51pm |
Couldn't find this in a search of the forum. How do you add items to a CommandBar ComboBox that contain an "&" in the expression (like Johnson & Johnson)? I've tried a few variations of the following, without success: sListItem = Replace(sListItem, "&", "' & '") Thanks! |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
I have no problem adding them. You can hard code it and say
"Johnson & Johnson" or place that string in a variable then assign
it.
|
|
![]() |
|
DDJJ ![]() Senior Member ![]() Joined: 13 December 2004 Status: Offline Points: 143 |
![]() ![]() ![]() ![]() ![]() |
What's happening to me is the ComboBox is showing "Johnson _Johnson". I am retrieving the string from a database field, assigning it to a string variable, then adding it to the combo using the AddItem method. Any kind of an "&" gets converted to an underscore. Same thing when I (for testing purposes) hard code the string variable. |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
OK, I see, it is displayed OK when dropped down, but when selected it
displays the underscore. If you use "&&" if fixes the one
problem but displays "&&" in the drop down. I think I
remember this being a bug in the report control and it was fixed, so
submit this as a bug so the development team can fix it
![]() Edited by SuperMario |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
We fixed it. Thank you. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |