theninjamanz 29 Posted October 11, 2010 Report Share Posted October 11, 2010 I am tring to work out how I would specify a ',' as a list box item. As the ',' is used to delimit the list items this is getting quite complicated. Quote Link to post Share on other sites
Seth Turin 223 Posted October 11, 2010 Report Share Posted October 11, 2010 hmm that is tricky. from the context, I'll assume that you're creating a choice of punctuation or symbols. one thing you might try is spelling it out, and have the user choose from the spelled out words. you can convert it to the proper symbol later using $replace. it might look like this: set(#symbol, $replace( $replace( $replace(#ui variable, "period",".") ,"colon",":") ,"comma",",") ) as an unrelated note, when I eventually add the text scripting, it might look something like that. Quote Link to post Share on other sites
theninjamanz 29 Posted October 11, 2010 Author Report Share Posted October 11, 2010 hmm that is tricky. from the context, I'll assume that you're creating a choice of punctuation or symbols. one thing you might try is spelling it out, and have the user choose from the spelled out words. you can convert it to the proper symbol later using $replace. it might look like this: set(#symbol, $replace( $replace( $replace(#ui variable, "period",".") ,"colon",":") ,"comma",",") ) as an unrelated note, when I eventually add the text scripting, it might look something like that. Wow that is messy. I think I'll probably use an IF to cover the ',' and just give the use to choose the other options. Thanks for this though. Quote Link to post Share on other sites
Enigma 78 Posted October 11, 2010 Report Share Posted October 11, 2010 I am tring to work out how I would specify a ',' as a list box item. As the ',' is used to delimit the list items this is getting quite complicated. You can change the delimiter in your settings, just change it to | Quote Link to post Share on other sites
Seth Turin 223 Posted October 12, 2010 Report Share Posted October 12, 2010 You can change the delimiter in your settings, just change it to | that's not actually correct. the delimiter in preferences refers to csv files. Quote Link to post Share on other sites
Enigma 78 Posted October 12, 2010 Report Share Posted October 12, 2010 that's not actually correct. the delimiter in preferences refers to csv files. Oops... Quote Link to post Share on other sites
theninjamanz 29 Posted October 12, 2010 Author Report Share Posted October 12, 2010 Oops... No harm done Quote Link to post Share on other sites
Frank 177 Posted October 12, 2010 Report Share Posted October 12, 2010 Normally you can ignore a delimiter such as a ',' in a csv by encapsulating the column data in ""'s. Maybe the same applies here. Once a " is captured, then the ',' is ignored until the closing " is found. Frank Quote Link to post Share on other sites
IRobot 43 Posted October 12, 2010 Report Share Posted October 12, 2010 I like your logic, Frank. If you mean that you could encapsulate each UI list item (or all) with speech marks, in order to display a comma in the list, then unfortunately this will not work. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.