Mmmm... Still doesn't work. I cut and pasted directly into a taf file. 
 
Witango 2000? Could that be a problem?
 
Maybe that's why I am having these problems.
 

  _____  

From: Bill Downall [mailto:[email protected]] 
Sent: Monday, December 21, 2009 12:14 PM
To: witango-talk
Subject: Re: Witango-Talk: Array and Left



On Mon, Dec 21, 2009 at 1:08 PM, WebDude <[email protected]> wrote:
> Could you give me an example?

Your code shown, with my addition in bold blue highlighted:

<@ASSIGN NAME="initValue" VALUE="123456789,123456789,123456789">

<@ASSIGN NAME="array3" VALUE="<@ARRAY VALUE=@@initValue CDELIM=','
RDELIM=';'>">


<@rows array='array3'>
<@ASSIGN promoid<@CURROW> '<@LEFT STR="<@VAR array3[<@CURROW>,1]>"
NUMCHARS="3">'>
</@rows>

<@ROWS ARRAY="<@VAR array3>">
<@VAR array3[<@CURROW>,1]>
</@ROWS>
<br>or
<br>

<@VAR array3[1,1]>

> -----Original Message-----
> From: Bill Downall [mailto:[email protected]]
> Sent: Monday, December 21, 2009 11:04 AM
> To: witango-talk
> Subject: Re: Witango-Talk: Array and Left
>
> WebDude,
>
> Put an <@ROWS array='array3'> pair of tags around your assign promoid
> statement.
>
> Bill
>
> On Mon, Dec 21, 2009 at 12:02 PM, WebDude <[email protected]> wrote:
>> Mmmm... Interesting. I cannot get it to work. Full code...
>>
>>
>> <@ASSIGN NAME="initValue" VALUE="123456789,123456789,123456789">
>>
>> <@ASSIGN NAME="array3" VALUE="<@ARRAY VALUE=@@initValue CDELIM=','
>> RDELIM=';'>">
>>
>> <@ASSIGN promoid<@CURROW> '<@LEFT STR="<@VAR array3[<@CURROW>,1]>"
>> NUMCHARS="3">'>
>>
>>
>> <@ROWS ARRAY="<@VAR array3>">
>> <@VAR array3[<@CURROW>,1]>
>> </@ROWS>
>> <br>or
>> <br>
>>
>> <@VAR array3[1,1]>
>>
>>
>>
>> -----Original Message-----
>> From: Robert Shubert [mailto:[email protected]]
>> Sent: Monday, December 21, 2009 10:02 AM
>> To: [email protected]
>> Subject: RE: Witango-Talk: Array and Left
>>
>> It 100% does work in that situation - there must be something else off.
>>
>> -----Original Message-----
>> From: WebDude [mailto:[email protected]]
>> Sent: Monday, December 21, 2009 10:36 AM
>> To: [email protected]
>> Subject: RE: Witango-Talk: Array and Left
>>
>> Like I said, I can use left in the input file like thus...
>>
>> <INPUT NAME="promoid<@CURROW>" TYPE="text" SIZE=4 MAXLENGTH=6
>> value="<@LEFT STR="<@VAR array2[<@CURROW>,1]>" NUMCHARS="3">">
>>
>> I was wondering if there was a way to use @left when creating the array.
>> Something like this...
>>
>> <@ASSIGN promoid<@CURROW> '<@LEFT STR="<@VAR array2[<@CURROW>,1]>"
>> NUMCHARS="3">'>
>>
>>
>> It doesn't seem to work on the @assign.
>>
>>
>>
>> -----Original Message-----
>> From: Robert Shubert [mailto:[email protected]]
>> Sent: Monday, December 21, 2009 9:15 AM
>> To: [email protected]
>> Subject: RE: Witango-Talk: Array and Left
>>
>> I can confirm that little quick in HTML about over-populating a text
>> input with a maxlength. It's always been the way it's worked for some
> reason.
>>
>> As for your code, that looks fine and should work, assuming you are
>> executing inside a @ROWS or @FOR block so that the @CURROW evaluates.
>>
>> I @LEFT and @RIGHT things all the time without issue.
>>
>> Robert
>>
>> -----Original Message-----
>> From: WebDude [mailto:[email protected]]
>> Sent: Monday, December 21, 2009 9:52 AM
>> To: [email protected]
>> Subject: Witango-Talk: Array and Left
>>
>> I am having a bit of a problem. I noticed that when I create a
>> variable and load that variable into an HTML text form input, the
>> MAXLENGTH attribute is ignored. It seems that if you set the input
>> field to MAXLENGTH=5, you cannot type more then 5 characters into the
>> field, however, when loading a variable into the field, the MAXLENGTH is
> ignored. Mmmmm...
>>
>> The values I am loading into the input form are from an array. Seems
>> it would be simple enough, but I cannot seem to get it to work.
>> Currently, I have something like this (using just on column for clarity
> sake).
>>
>> <@ASSIGN NAME="initValue" VALUE="<@VAR text11>"> <@ASSIGN NAME="array2"
>> VALUE="<@ARRAY VALUE=@@initValue CDELIM=','
>> RDELIM=';'>">
>> <@ASSIGN promoid<@CURROW> '<@VAR array2[<@CURROW>,1]>'>
>>
>> I tried changing the promoid to
>>
>> <@ASSIGN promoid<@CURROW> '<@LEFT STR="<@VAR array2[<@CURROW>,1]>"
>> NUMCHARS="3">'>
>>
>> But I get no love. Am I missing something here? I just want to be able
>> to limit the number of characters to 3. Yes, I can use this on the
>> form page, but was interested in a more elegant way of doing this.
>>
>> Thanks!
>>
>> ______________________________________________________________________
>> __ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>>
>>
>> ______________________________________________________________________
>> __ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>> ______________________________________________________________________
>> __ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>>
>>
>> ______________________________________________________________________
>> __ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>> ______________________________________________________________________
>> __ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>>
>>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
>


________________________________________________________________________

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