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

Insert Tab character in a string

New Here ,
Oct 30, 2007 Oct 30, 2007
I'm trying to create a string that will eventually be written to a text file that has to be tab delimited. I can't figure out how to insert a tab in the string. Here's an example:

<cfset headerline = 'H' & TAB & #FORM.order_ID#>

Obviously, 'TAB' doesn't work here. Help?

Michelle
5.2K
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

correct answers 1 Correct answer

LEGEND , Oct 30, 2007 Oct 30, 2007
michellezee@comcast. wrote:
> I'm trying to create a string that will eventually be written to a text file
> that has to be tab delimited. I can't figure out how to insert a tab in the
> string. Here's an example:
>
> <cfset headerline = 'H' & TAB & #FORM.order_ID#>
>
> Obviously, 'TAB' doesn't work here. Help?
>
> Michelle
>
>

TAB = #chr(9)#

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Translate
LEGEND ,
Oct 30, 2007 Oct 30, 2007
LATEST
michellezee@comcast. wrote:
> I'm trying to create a string that will eventually be written to a text file
> that has to be tab delimited. I can't figure out how to insert a tab in the
> string. Here's an example:
>
> <cfset headerline = 'H' & TAB & #FORM.order_ID#>
>
> Obviously, 'TAB' doesn't work here. Help?
>
> Michelle
>
>

TAB = #chr(9)#

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
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