Reverse For Loops

  • Thread starter Thread starter ree32
  • Start date Start date
R

ree32

My background is from C++ & C#. So I was wondering if there is a
reverse for loop in vb? Or a way to do it some how.

By reverse for loop I mean going eg. from i=7 to i=2
 
(e-mail address removed) (ree32) wrote in
My background is from C++ & C#. So I was wondering if there is a
reverse for loop in vb? Or a way to do it some how.

By reverse for loop I mean going eg. from i=7 to i=2



Yes:


For i = 8 to 1 step -1

Next

I believe that is the syntax,
 
By reverse for loop I mean going eg. from i=7 to i=2

For I = 7tro 2 Step -1
'Routine
Next I

__

Tym

All this technology and it still takes forever to get anywhere.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top