Hey,
So I'm trying to properly display strings in a listbox and have run into an issue I can't find a clear definition on. When adding a string to a listbox, some care must be taken to make sure it displays correctly. My problem is with the hyphen character "-". When I insert a string that includes a hyphen into the listbox, the listbox assumes that the hyphen is a delimiter of some kind. It will break the string at the hyphen and display in remaining string in the next column. I've already added some logic that adds additional quotation marks to the string when there is a semicolon or comma present in the the string. (This works fine) However, I tried to add the same logic for a string that includes the hyphen and haven't had the same success. I haven't tried doubling the character "--", but I vaguely remember having to do that for the "&" character.
Does anyone know the proper way to get hyphens to display in the listbox? Are there any other special characters other than "; , -" that I should be concerned about and how should I go about handling them?
Thank you in advance.