Re: ASP Help Needed

by "Rajnish Bhaskar" <r.bhaskar(at)compserv.gla.ac.uk>

 Date:  Thu, 06 Feb 2003 09:23:33 -0000
 To:  matthew(at)ohlman.com
 Cc:  hwg-languages(at)hwg.org
 In-Reply-To:  MATTHEWLAPTOP
  todo: View Thread, Original
> To pass items to PayPal, you need to have each item's attributes set up with
> a number on the end of it, like: item_name_x, amount_x, where x=a number,
> without skipping any numbers.
> 
> So what I need to know is how I can do this. I think I would need to create
> a FOR statement, but I am not sure exactly how to do this.

I'm not terribly familiar with VB(script), but from what I remember, 
you should be able to do something like this (apologies if I get the 
syntax wrong, it's been several years since I attempted any VB 
whatsoever...):

dim current_item_name
dim current_amount

for i=1 to 10
	' do stuff here
	current_item_name = "item_name_" & i
	current_amount = "amount_" & i
	' do stuff here
end if

HTH,
Raj.

-- 
Rajnish Bhaskar, r.bhaskar(at)compserv.gla.ac.uk
http://lordofthemoon.com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.