I don't understand what you mean by tacking a <@CRLF> onto the end. That's
treating your array like a string rather than an array. Anyway, here's my
stab at turning a 13-column array into a 6-column array. Basically I
transpose the array, drop the columns/rows I don't want, and transpose it
back. Not necessarily efficient, but it works.
<@ASSIGN local$ThirteenColumnArray VALUE="<@TRANSPOSE
ARRAY='local$ThirteenColumnArray'>">
<@ASSIGN local$ColumnsIWant VALUE="<@ARRAY VALUE='2;3;5;6;7;8;'>">
<@ROWS ARRAY='local$ColumnsIWant'>
<@ADDROWS local$SixColumnArray VALUE="@@local$ThirteenColumnArray[<@COL
1>,*]">
</@ROWS>
<@ASSIGN local$SixColumnArray VALUE="<@TRANSPOSE
ARRAY='local$SixColumnArray'>">
@@local$SixColumnArray<BR>
Joanna Ruth Wirtz
Internet Applications Programmer
Christianity Today International
http://www.ChristianityToday.com
----- Original Message -----
From: "Brian Mowers" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Thursday, May 09, 2002 2:41 PM
Subject: Witango-Talk: Re: Making a 6 Column Array from a 13 column array.
>
> I can't seem to make this one work. I want to create a new 6 column array
> from a 13 column array in a results action.
> I also want to tack on a <@CRLF> at the end of the new array.
> Specifically I want columns 2,3,5,6,7,8 from the resultset array then I
> want to tack on an extra <@CRLF> at the end of it.
>
> Should be simple but this one is giving me fits.
>
> I don't splice and dice arrays, I usually work with <@column>,<@Col Num=n>
etc.
> I have tried:
> <@assign local$vSixColumns Value='<@ARRAY ROWS=<@NumRows> COLS=6
> VALUE="@@MailArray[*,2] @@MailArray[*,3] @@MailArray[*,5] @@MailArray[*,6]
> @@MailArray[*,7] @@MailArray[*,8]"> <@CRLF>'>
>
>
> But all I get is a one column array.
>
> Best regards,
>
> Brian Mowers
>
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
> with unsubscribe witango-talk in the message body
>
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body