By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,334 Members | 2,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,334 IT Pros & Developers. It's quick & easy.

Reverse For Loops

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
re***@hotmail.com (ree32) wrote in
news:76**************************@posting.google.c om:
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,
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #2

P: n/a
Tym
On 16 Dec 2004 17:22:06 -0800, re***@hotmail.com (ree32) wrote:
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.
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.