<pre>

Ah. Looks like one of TWO different problems here.

1]  There's a major error in this statement

<@assign NAME='newsarray' Scope='domain' value="<@array
value='request$newsletterarticles' cdelim='<@char 28>' rdelim='<@char
30>'>">

Should instead read

<@assign NAME='newsarray' Scope='domain' value="<@array
value='<@var request$newsletterarticles>' cdelim='<@char 28>' rdelim='<@char
30>'>">


OR

<@assign NAME='newsarray' Scope='domain' value="<@array
value='@@request$newsletterarticles' cdelim='<@char 28>' rdelim='<@char
30>'>">

<@array is expecting (in the value expression) NOT an array, but a variable, so you have to qualify the value as a variable.

E.g.,

<@distinct array="request$this_is_an_array_already" cols="1"> <----- is correct, because an ARRAY variable is being called

<@array value="@@request$this_is_about_to_be_an_array" <---- is correct, because a variable is needed to supply data to the array



2] Depending on how you bring the written data in, you may need to qualify the variable like so

<@var request$filecontents encoding=meta> to get the non- displayable characters to show up correctly when you first read it back in. Normally, however, this is only an issue when you bring the data in as an assignment from an included file, as opposed to a read in.

So in your case, try this (TRY fixing #1 FIRST; then this if it that doesn't complete the cure):


<@assign NAME='newsarray' Scope='domain' value="<@array
value='<@var request$newsletterarticles encoding=meta>' cdelim='<@char 28>' rdelim='<@char
30>'>">

</pre>


On May 9, 2007, at 2:20 AM, Wayne Irvine wrote:

Dale Graham at [EMAIL PROTECTED] wrote:

<@ASSIGN name="request$Count" value="<@NUMCOLS ARRAY='[ARRAY SCOPE,
NAME GOES HERE]'>">
<@ROWS ARRAY='[ARRAY SCOPE, NAME GOES HERE]'>
<@COLS><@COL encoding="none"><@IF EXPR=" '<@CURCOL>' < '<@VAR
NAME=request$Count>' "
TRUE="<@CHAR 28>" FALSE="<@CHAR 30>"></@COLS></@ROWS>

And

<@assign name="request$thisdata" value="<@array value='request
$filecontents' cdelim='<@char 28>' rdelim='<@char 30>'>">

Hmmmm, I have:

<@ASSIGN name="request$Count" value="<@NUMCOLS
ARRAY='domain$NewsLetterArray'>">
<@ROWS ARRAY='domain$NewsLetterArray'>
<@COLS>
<@COL encoding="none">
<@IF EXPR=" '<@CURCOL>' < '<@VAR NAME=request$Count>' " TRUE="<@CHAR 28>"
FALSE="<@CHAR 30>">
</@COLS>
</@ROWS>

In the File:Write action

And

<@DEBUG>
@@request$newsletterarticles
</@DEBUG>

<@assign NAME='newsarray' Scope='domain' value="<@array
value='request$newsletterarticles' cdelim='<@char 28>' rdelim='<@char
30>'>">



<@DEBUG>
@@domain$newsarray
</@DEBUG>

In my read action.

The first Debug shows me a bunch of text with none-displayable characters between them as you'd expect. The second one shows me a single cell table
with 'request$newsletterarticles' in it.

I'm guessing a small syntax problem but stuffed if I can work it out.

Wayne

                  Byte Services Pty Ltd
               http://www.byteserve.com.au/
                  [EMAIL PROTECTED]
   Ph 02 9960 6099   Mob 0409 960 609   Fax 02 9960 6088

______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf



________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to