Tabs Between Fields in a .txt File

Fairlight fairlite at fairlite.com
Thu Jan 11 05:20:38 PST 2007


Yo, homey, in case you don' be listenin', Mike Fedkiw done said:
> Is this something I can use in request output without the export command.
> 
> EXAMPLE
> if:
> then: t=chr("9")
> if:
> then: pl(110,*,g)=mn{t{ac{t{de{t{sh{t{ne{t{ns{t{un{t{s{t{le
> if:
> then: print;end
> 
> this is what I get
> 30025+HBH+FILTER MEDIA 10*18 WHITE+4+2.49+9.96+009112300251+n+3.04

The code looks right.  Obviously concatenation works.  I'm unsure as to why
chr("9") is resulting in "+" signs instead of tabs, however.  No ASCII
value for "+" in decimal, hex, or octal even has a 9 -in- it (obviously
octal couldn't).

Anyone have any ideas?

Hmmm...without knowing for sure (not a big user of request output in the
conventional sense here), is it possible that the form is translating the
tabs itself?  I see the print, which implies you're using the form.

What happens if you just open a file with open(), writeline() out the
contents of pl, and close() the file?  I suspect this may hit it on the
head and you'd get tabs in the file.  I'm guessing the form translates it
out of being a tab for whatever reason.

mark->


More information about the Filepro-list mailing list