Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 June 19th, 2007, 09:24 PM
Friend of Wrox
Points: 1,107, Level: 13
Points: 1,107, Level: 13 Points: 1,107, Level: 13 Points: 1,107, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jul 2004
Location: , , .
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
Default skip first field

How do you make the following skip the first field?
<%for each x in rs.Fields%>

Old July 7th, 2007, 05:10 PM
Registered User
Join Date: Jul 2007
Location: Huntsville, AL, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

set a boolean outside the foreach loop to false and too true after the first iteration: in C# it would be...

bool skipped = false;
foreach (item in rs.items)
    if (skipped)
        //do your processing here
    else skipped = true;

That is the simple solution.

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to skip from one page to other rashmipant PHP How-To 2 December 8th, 2006 05:20 AM
Why would this skip record #1? dep XSLT 8 November 1st, 2006 02:57 PM
Skip a row rochak SQL Server DTS 2 September 27th, 2005 11:06 PM
Skip On Refresh Prabhakar_dt Classic ASP Basics 9 September 2nd, 2004 11:44 PM

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