Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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 25th, 2006, 12:11 AM
Friend of Wrox
Join Date: May 2005
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default nested for

Hello all
I need 2 nested for that compare each i with each a(j) and if that i wasn't in a() array write that i.I wrote the code below but it repeats each record 14 times:(14 is half of i(s).the total i quantitties are 28)
for i=23 to 50
   For j=0 to Ubound(a)
       if a(j)=i then
           if j=Ubound(a) then
           end if
      end if
would you please tell me where is the problem?
thank you

Old July 27th, 2006, 06:28 PM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Ok i am having a hard time understanding what you are trying to accomplish. I understand that you are executing the outer loop 28 times which will fire the inner for loop 28 times and the inner for will loop for X number of times.

But what do you mean it repeast each record 14 times??

"The one language all programmers understand is profanity."

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested query deb1980 ASP.NET 2.0 Basics 2 April 10th, 2007 04:38 AM
nested for-each sassymonix XSLT 6 May 16th, 2006 06:47 AM
Nested If Statement KCTin Visual Basic 2005 Basics 3 December 28th, 2005 01:53 PM
Nested If pans Access 4 December 10th, 2004 12:39 AM
Nested Do Until Loop goels Access VBA 2 September 30th, 2004 08:44 AM

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