Author | Message | Time |
---|---|---|
Forged | how would you do [code]for(k =1; k<x; k++)[/code] 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 | November 6, 2004, 9:51 PM |
Myndfyr | 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: [code] For k = 1 to x Step 1 ' code Next [/code] | November 6, 2004, 9:53 PM |
Newby | [quote author=MyndFyre link=topic=9450.msg87687#msg87687 date=1099778012] That's amazing! I googled "visual basic for loops" and came up with: http://www.programmershelp.co.uk/vbforloops.php The FIRST result! [/quote] WTF? What's this google thingy you're talkin about? Must be the work of Satan. | November 6, 2004, 9:54 PM |
R.a.B.B.i.T | [quote author=MyndFyre link=topic=9450.msg87687#msg87687 date=1099778012] 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: [code] For k = 1 to x Step 1 ' code Next [/code] [/quote]Step 1 is redundant, because that is the default! | November 6, 2004, 9:58 PM |
Forged | [quote author=MyndFyre link=topic=9450.msg87687#msg87687 date=1099778012] 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: [code] For k = 1 to x Step 1 ' code Next [/code] [/quote] Guess I am using the wrong search engine :( Thank you good sir. | November 6, 2004, 10:07 PM |
Myndfyr | [quote author=R.a.B.B.i.T link=topic=9450.msg87689#msg87689 date=1099778302] Step 1 is redundant, because that is the default! [/quote] 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 | November 6, 2004, 11:41 PM |
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). | November 7, 2004, 12:41 AM |