• Welcome to Valhalla Legends Archive.
 

using for loops

Started by Forged, November 06, 2004, 03:51 PM

Previous topic - Next topic

Forged

how would you do
for(k =1; k<x; k++)

in vb?  I looked on yahoo and I didn't see anything on how you would do that.

and using search on this forum came up with any search that included the word for or loops
QuoteI wish my grass was Goth so it would cut itself

MyndFyre

That's amazing!  I googled "visual basic for loops" and came up with:
http://www.programmershelp.co.uk/vbforloops.php
The FIRST result!

I had this code typed in first:

For k = 1 to x Step 1
' code
Next

QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Newby

Quote from: MyndFyre on November 06, 2004, 03:53 PM
That's amazing!  I googled "visual basic for loops" and came up with:
http://www.programmershelp.co.uk/vbforloops.php
The FIRST result!
WTF? What's this google thingy you're talkin about? Must be the work of Satan.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

R.a.B.B.i.T

Quote from: MyndFyre on November 06, 2004, 03:53 PM
That's amazing!  I googled "visual basic for loops" and came up with:
http://www.programmershelp.co.uk/vbforloops.php
The FIRST result!

I had this code typed in first:

For k = 1 to x Step 1
' code
Next


Step 1 is redundant, because that is the default!

Forged

Quote from: MyndFyre on November 06, 2004, 03:53 PM
That's amazing!  I googled "visual basic for loops" and came up with:
http://www.programmershelp.co.uk/vbforloops.php
The FIRST result!

I had this code typed in first:

For k = 1 to x Step 1
' code
Next



Guess I am using the wrong search engine :(

Thank you good sir.
QuoteI wish my grass was Goth so it would cut itself

MyndFyre

Quote from: R.a.B.B.i.T on November 06, 2004, 03:58 PM
Step 1 is redundant, because that is the default!

Yes, step 1 is redundant, but the theory is if he wanted to go up by 2, he'd figure out that having "Step 1" there could be changed to "Step 2" later.  :P
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

LivedKrad

No need to explain yourself. Redundancy is the way to go to insure that all possible routes are duely noted. (And, to be able to make one's self open to redundancy accusations).