That should work. Thank you
-----Original Message-----
From: Shane Pearlman [mailto:[EMAIL PROTECTED]
Sent: Monday, August 20, 2007 4:33 PM
To: [email protected]
Subject: Re: Witango-Talk: Is it ok to tokenize an array?
So if I understand correctly, you goal is to create an array that looks
like this:
PIC,1,1,5;
PIC,2,2,200;
PIC,3,3,15;
Use @rows to work through your current array,
<@assign request$mynewtokenizedarray>
<@row array="request$PIArray">
<@addrows array="request$mynewtokenizedarray" <@tokenize
value="<@col1>" chars="-">>
</@rows>
I may be off on the syntax since I don't have studio open right now
though so double check.
-S
Fogelson, Steve wrote:
>
> Shane,
>
>
>
> I have an array of arguments like the following and I want to tokenize
> on the dashes to extract the components
>
>
>
> PIC-1-1-5
>
> PIC-2-2-200
>
> PIC-3-3-15
>
>
>
> Thanks
>
>
>
> Steve
>
>
>
> -----Original Message-----
> From: Shane Pearlman [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 20, 2007 4:07 PM
> To: [email protected]
> Subject: Re: Witango-Talk: Is it ok to tokenize an array?
>
>
>
> I may be off on this but when you output the array like that it will
>
> output the default witango table array code. Tokenize should try to
>
> break that into a new array by using the char you gave it. You might
>
> want to define the output format of the array to get results.
>
>
>
> That said, what are you actually trying to accomplish?
>
>
>
> -S
>
>
>
> Fogelson, Steve wrote:
>
> >
>
> > I am using the following and getting strange results.
>
> >
>
> >
>
> >
>
> > *<@assign** request$PIArray "**<@tokenize** value=**'**<@var**
>
> > request$PIArray**>**'** chars=**'-'**>**"**>***
>
> >
>
> >
>
> >
>
> > It almost seems to be an array within another 1 by 1 array. Any
>
> > suggestions?
>
> >
>
> >
>
> >
>
> > Thanks
>
> >
>
> >
>
> >
>
> > Steve Fogelson
>
> >
>
> > Internet Commerce Solutions
>
> >
>
> > ________________________________________________________________________
>
> > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
> >
>
>
>
> --
>
> Shane Pearlman
>
> 831.345.7033
>
> Shane & Peter, Inc.
>
> www.shaneandpeter.com
>
> ________________________________________________________________________
>
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
>
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
--
Shane Pearlman
831.345.7033
Shane & Peter, Inc.
www.shaneandpeter.com
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf