Aseem,

Here is a simple TAF that demonstrates populating a list of variables from the content 
of a single variable containing comma-separated values.

As Ben said, you can just tokenize the list and refer to the resulting array, but if 
you already have meaningful variable names in use elsewhere in your code, here is a 
quick way to assign values to them.

BTW, use <@TOKENIZE> only if you have no empty values in your csv data as it will skip 
null values, resulting in shortened array. If you might have missing values, use 
<@ARRAY>.

charles

-----Original Message-----
From: Ben Johansen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 14:48
To: [EMAIL PROTECTED]
Subject: RE: Witango-Talk: RE: comma delimited list and variables


You use the <@TOKENIZE> to turn the values into an array variable.
You can then just leave them in that array variable and reference them
as you do an array

Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm 
Latest downloads & List Archives @ http://www.witango.ws


-----Original Message-----
From: Aseem Mal [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 2:32 PM
To: [EMAIL PROTECTED]
Subject: Witango-Talk: RE: comma delimited list and variables

Hi,
I have a variable that contains a comma-delimited list. I need to take
each item in the list and assign it to different variables. Any ideas?

Thanks.

Aseem Mal


-----Original Message-----
From: Jason Pamental [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 12:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: ASP code to Tango

Aseem,

What version/platform are you using? (I've missed some of the early  
bits of this thread)

T2K with FTF047 and v5 on Windows will support https in the @URL tag  
just fine. You might not need the COM object.

Jason

On Thursday, February 6, 2003, at 02:02 PM, Aseem Mal wrote:

> Besides remember that <@URL> meta tag does not support secure urls
> (https), which is what I need to do. Any ideas?
>
> Aseem Mal
>
>
> -----Original Message-----
> From: Aseem Mal
> Sent: Thursday, February 06, 2003 10:56 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Witango-Talk: ASP code to Tango
>
> Thanks, but I need to send this post via a secure connection using a  
> COM
> object called WinHTTP. Keeping this fact in mind, can you translate
the
> asp into taf?
>
> Aseem Mal
> Web Applications Engineer
> Execpro Information Services Inc.,
> 1250, 4th Street
> Santa Monica, CA 90401
> E-mail: [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: David Shelley [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 7:56 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Witango-Talk: ASP code to Tango
>
> Aseem,
>
> That 50 lines of ASP code can be done in 3 lines in Witango (thought  
> the
> first one is kinda ugly). This will wrap in unseemly places:
>
> <@assign local$postArgList <@array
>
value="x_Password,testing;x_ADC_Delim_Data,True;x_ADC_Delim_Character,| 
> ;
> x_Lo
> gin,<@arg x_Login>;x_Card_Num,<@arg x_Card_Num>;x_Exp_Date,<@arg
> x_Exp_Date>;x_Email_Customer,<@arg
> x_Email_Customer>;x_Email_Merchant,<@arg
> x_Email_Merchant>;x_Amount,<@arg x_Amount>;">>
>
> <@assign local$returnValue <@url
> location="https://secure.authorize.net/gateway/transact.dll";
> postargArray=postArgList>>
>
> @@local$returnValue
>
> Dave Shelley
>
> -----Original Message-----
> From: Aseem Mal [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 8:27 PM
> To: [EMAIL PROTECTED]
> Subject: Witango-Talk: ASP code to Tango
>
>
> Hi,
> Can someone help me create a .taf file out of this .asp file  
> (attached).
> Thanks.
>
>
_______________________________________________________________________ 
> _
> 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
>
>
_______________________________________________________________________ 
> _
> 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
>
>
-- 
____________________________________________________________________

Jason Pamental, President

   [EMAIL PROTECTED]

Bathysphere Digital Media Services, Inc.                              
http://bathyspheredms.com
____________________________________________________________________

Tel: 401.490.6830      Fax: 401.490.6831
________________________________________


A North American Distributor for Witango (http://www.witango.us)

Rapid Web Application Development - XML Execution Engine


________________________________________________________________________
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

________________________________________________________________________
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

Attachment: arraytest.taf
Description: arraytest.taf

Reply via email to