1) I am not sure why do you have the IF statement in the <@COLS> loop - it does not seem to do anything useful.
2) You can simplify your code:
 
If I assume that if you have an array like this:
 
A    B
C    D
 
and want an output like this:
 
A(return)B(return)C(return)D(return)
 
you can replace your code with
 
<@var name="BC_2" aprefix="" asuffix="" rprefix="" rsuffix="<@CHAR 13>" cprefix="" csuffix="<@CHAR 13>">
 
I don't know what scope is variable "BC_2" defined in, but I would recommend you to specify it.
 
If you want output like this:
 
A (tab)B(return)C(tab)D(return)
 
then put <@CHAR 9> into attribute "csuffix"
 
Double check the code syntax if it does not work - I have not tested it.
 
-----Original Message-----
From: Jon van der Raadt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: write woes

I believe this is it...


<@ASSIGN NAME="totalcolnum" VALUE="<@NUMCOLS ARRAY="BC_2">" SCOPE="user">

<@ROWS ARRAY="BC_2">

<@COLS><@COL><@IF '<@VAR NAME="totalcolnum" SCOPE="user"> != <@CURCOL>'></@IF>

</@COLS>

</@ROWS>



On Wednesday, March 12, 2003, at 11:23 AM, Alexander Zatko wrote:


Not sure how your code looks like, but you might do something like:

<@var local$myarray apreffix="" asuffix="" rpreffix="" rsuffix="<@CHAR 13>" cpreffix="" csuffix="<@CHAR 9>">

A.


-----Original Message-----

From: Jon van der Raadt [mailto:[EMAIL PROTECTED]

Sent: Wednesday, March 12, 2003 12:14 PM

To: witango.com witango talk

Subject: Witango-Talk: write woes


Hello list,



We are having issues with a taf that writes an array to disk for import to another system. The taf used to work fine but now inserts a carriage return after the tab character resulting in an unusable file... We can find nothing to explain this -- any ideas?



Solaris 2.6, Tango 2K, Netscape Enterprise Server 4, Oracle 8i



Jon


---


Jon van der Raadt



TeamOnly


Web Solutions



412, Alastair Ross Technology Centre


3553 - 31 Street NW


Calgary, Alberta Canada T2L 2K7



http://www.teamonly.net




Office: (403) 286-5586


Fax: (403) 286-5576



Cell: (403) 863-6304


Email: [EMAIL PROTECTED]



---


Jon van der Raadt



TeamOnly


Web Solutions



412, Alastair Ross Technology Centre


3553 - 31 Street NW


Calgary, Alberta Canada T2L 2K7



http://www.teamonly.net




Office: (403) 286-5586


Fax: (403) 286-5576



Cell: (403) 863-6304


Email: [EMAIL PROTECTED]



---

Jon van der Raadt


TeamOnly

Web Solutions


412, Alastair Ross Technology Centre

3553 - 31 Street NW

Calgary, Alberta Canada T2L 2K7


http://www.teamonly.net



Office: (403) 286-5586

Fax: (403) 286-5576


Cell: (403) 863-6304

Email: [EMAIL PROTECTED]


________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to