| View previous topic :: View next topic |
| Author |
Message |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Sun Feb 12, 2006 8:40 pm Post subject: How to add an item containing a comma to a list |
|
|
Maybe I'm overlooking the obvious but at this moment I just can't figure out a working solution.
I want to add a string to a list that contains a comma like Name, Firstname but all I get is an invalid list operation.
Suspecting that the comma in the string is interpreted by the LISt command as a parameter separator I tried to solve it by using Name@CHR(44) Firstname but unfortunately with the same error as result.
Anyone an idea to get this working?
Jan |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Mon Feb 13, 2006 12:27 am Post subject: |
|
|
Put the entire string in double quotes...
| Code: | list add,1,"Name, Firstname"
|
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Mon Feb 13, 2006 1:19 am Post subject: |
|
|
Thanks for the suggestion, but as it turned out I was apparently sleeping when coding that bit (must be the late hour).
It works without the quotes as well.
My mistake was that after opening a secondary dialog where the user enters the name and first name I tried to add those names to a list that was part of the main dialog.
When I changed the code to close the second dialog and activating the first again, adding to the list - even without quotes - worked as intended.
So, problem solved!
Jan |
|
| Back to top |
|
 |
|