Jump to content
UBot Underground

Having a "," as an item in a list box


Recommended Posts

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

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 |

Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...