Question New, need help, learning Visual Basic 2010

Erin

Member
Joined
Nov 7, 2011
Messages
9
Programming Experience
Beginner
HI everyone! I have a question. This is my first post and need help with figuring out this bug. I am in college and learning Visual Basic 2010. We were given this and for some reason I can't get this to work right. Here is the whole thing:

The following code should display three rows of percent signs in the msgLabel. The first row should contain one percent sign, the second row should contain two percent signs, and the third row should contain three percent signs. However, the code is not working correctly.
For row As Integer = 1 To 3
     For percent As Integer = 1 To 3
          msgLabel.Text = msgLabel.Text & "%"
     Next percent
     msgLabel.Text = msgLabel.Text & ControlChars.NewLine
Next row






If anyone could help me I would be so appreciative!!!!!!!
 
Last edited by a moderator:
I do want to continue doing this but sometimes people just get stuck and have a hard time figuring it out. But no, nothing like this course was ever even offered in junior high or high school. I'm majoring in Computer Science, but like I said, this is my very first semester in college so I am very new at this.

If you want my advice, don't rely on classes only, ever. I know at your age you probably want to party more than study, still keep in mind that programming is a VERY wide field, so tidbits you can grab on your own will greatly accelerate your learning curve. Self-school as much as you can, it really pays off fast. Programming classes are by design very shallow and simple, even if you are capable of learning this stuff very fast given the proper help, there are 20 other people in that class, some of which have no interest whatsoever in the course and end up slowing everyone else down. You won't really touch the good stuff before university if you rely on classes alone.

If you really to understand the most basic notions of programming, try and pick up a book about assembly language somewhere and dig it in at your own rythm. I would suggest some simple 8-bit processor like the Motorola 6502. Having a good knowledge of how the machine you are programming works internally will give you a big edge when learning more advanced logic later on.
 
You are actually quite wrong about me. I am attending university, there are only 10 students in my class and the ones that don't care about the course just sit there, they don't slow down the course. I am 28 years old. I am married to a Fundamental Baptist preacher and the mother of 3. My version of "partying" has nothing to do with alcohol or anything like that. It is more along the lines of organizing a play group or something for my kids. I also home school my children, therefore even if I did want to "party" I couldn't, I'm too busy!

As far as teaching myself some stuff, oh yeah! The professor only goes through the chapter, assigns 5 review questions and two projects. I then go back through, answer all review questions and do all projects. Part of the reason I am on this forum is to learn new things as well. I appreciate the tips! I will look into some of that stuff for sure!!!!
 
Back
Top