Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7802453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:16:15+00:00 2026-06-02T01:16:15+00:00

I want to edit some legacy code written in classic-ASP. Currently I’ve got a

  • 0

I want to edit some legacy code written in classic-ASP.

Currently I’ve got a subroutine declared that uses a for-next loop to output some radio buttons:

 For i = 1 to Cols
   response.write "blah"
   ...
 Next

i is simply a counter, Cols is a value passed to the sub-routine. I tried editing the for-loop to be a while loop instead:

i = Start
do while i <= Cols
  response.write "blah"
  ...
  i = i + 1
loop

But I get a Response Buffer Limit Exceeded error. If I replace Cols with the value it works fine. Is this a limitation in classic-ASP?


Reason I want to use a do while loop is because currently the sub-routine is limited to looping from 1 to Cols. It would be helpful to sometimes specify the loop counts backwards (i.e. step -1) but I can’t write:

if Direction = Backwards then 
  For i = Cols to 1 step -1
else
  For i = 1 to Cols
end if
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:16:18+00:00Added an answer on June 2, 2026 at 1:16 am

    How about:

    If Direction = Backwards Then
        cs = 10
        ce = 1
        s = -1
    Else
        cs = 1
        ce = 10
        s = 1
    End If
    
    For i = cs To ce Step s
        ''
    Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some labels that I want to allow users to edit. Is it
I'm testing some legacy code that extends the default php exception object. This code
I am working with some legacy code which uses something like this: void store_data(FILE
I want to start using guice in an existing application that has legacy code.
I am using sqlite in my app, i want to edit some data in
I want to display and edit some objects in a WPF data grid and
I want to copy my NSDictionary's data into plist and also edit some data
I want to learn some JVM language, but there are so many EDIT :
Here is what I want: I have a huge legacy C/C++ codebase written for
Currently I'm searching for a free solution to simple edit some photos at the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.