Date: Fri, 23 Sep 2005 13:47:09 -0500 (CDT) From: Mark Jacobson To: 810-030-01@uni.edu Subject: Friday For Next loops and Mid( , , ) and ; Hi Visual Basic students, Here is a nice review of today's lecture and the For Next loop and Mid() function and the Print statement with and without the semicolon. Have a great weekend, Mark ---------- Forwarded message ---------- Date: Fri, 23 Sep 2005 12:07:39 -0500 (CDT) From: Mark Jacobson To: Bilbo Baggins Subject: Re: Class Hi Bilbo, We really did not even get to today's handout, which is on bright green paper, courtesy of what someone left in the copy machine. I have LOTS of extra copies. We covered For Next loops and the Mid("Panthers", i, 1) function and a bunch of stuff about the Print statement, including using a ; semicolon to have the Print remain on the same line, instead of advancing to the next line after it Prints. Also the Stepsize for For Next loops. For i = 1 to Len(txtWord) Step 1 <------ Usually leave off when Print Mid(txtWord, i, 1) Step size is 1, as that Next i is the default. Outputs P a n t h e r s For i = Len(txtWord) To 1 Step -1 <------ Step minus ONE is Print Mid(txtWord, i, 1) & " "; required!!! Next i Outputs: s r e h t n a P For i = 20 to 100 Step 10 Print i; Next i Outputs: 20 30 40 50 60 70 80 90 100 For i = 10 to 1 Step -1 Print i Next i Print Print "Blast Off!!!" Outputs: 10 9 8 7 6 5 4 3 2 1 Blast Off!!! See you on Monday. Mark On Fri, 23 Sep 2005, Bilbo Baggins wrote: > Hi Mark, > I may not make it to class today. If I don't, feel free to give any handouts > to my neighbor :) > Bilbo Baggins