Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Replacing comma delimiters with single quotes.

Guest
May 28, 2008 May 28, 2008
Hi,

I need to replace all the occurences of comma delimter in my list (i.e, "one,two,three,four") with a single quote,

The output should be like this,

'one','two','three','four'

Can anybody shed some light here?
264
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 28, 2008 May 28, 2008
LATEST
Use the ListQualify function. Details are in the cfml reference manual.

Unless you are going to use this list in a query, in which case the list attribute of cfqueryparam is a better approach.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources