It 100% does work in that situation - there must be something else off. -----Original Message----- From: WebDude [mailto:webd...@cipromo.com] Sent: Monday, December 21, 2009 10:36 AM To: witango-talk@witango.com 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:rshub...@tronics.com] Sent: Monday, December 21, 2009 9:15 AM To: witango-talk@witango.com 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:webd...@cipromo.com] Sent: Monday, December 21, 2009 9:52 AM To: witango-talk@witango.com 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