Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 22nd, 2005, 08:33 AM
Authorized User
Join Date: Jun 2003
Location: Jewett City, CT, USA.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending arrays to ASP

I am writing a small app that will send a group of strings as an array to an ASP page. I know that the array is returned as a comma-delimited string, but I can't remember how to loop through this array to get the individual values.

Can someone please help me?

Old July 22nd, 2005, 07:02 PM
Friend of Wrox
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post

Try using SPLIT() function to split those values in to array and use a FOR loop as below.
strArr = split(strCommaSeparatedVar)
For i = LBound(strArr) to UBound(strArr)
    Response.write strArr(i)
Hope that helps.

- Vijay G
Strive for Perfection

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP Arrays anna_benning Classic ASP Databases 6 February 25th, 2007 11:57 AM
Urgent: Pagination in ASP using arrays ,code reqd. jyoti_khera BOOK: Beginning ASP 3.0 1 October 19th, 2004 12:25 PM
Searching ASP Arrays higgsy Classic ASP Basics 0 June 24th, 2003 05:37 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.