-
Your first one is not a loop statement.
private sub form_click()if i = 0 then
i = i + 1
endifprint "You clicked" & i & "times"
end sub
Something like this.
I don't know anything else.
-
The first question is put outside;
dim i as integer
private sub form_click()i = i + 1
print "You clicked" & i & "times"
end sub
Question 2: Private Sub Form Click()dim j as integer, x as single, y as single
y =x =
sp = 255 / y
for j = 0 to y
line (0, j)-(x, j), rgb(j * sp, j * sp, j * sp)
next j
end sub
Are all of your questions corrected?!
Question 3 No problem Just see if you have a text control, and whether the text attribute in the text is empty or not a number, if so, it will be wrong!
-
Ting091 said: Hello, personal opinion: I understand it when I listen to it in class, and I make mistakes when I do it after class, which is a common problem for every beginner, because when you are in class, you are following the teacher's ideas, very clear, and you will understand it when you listen to it, giving people a feeling of "such a simple thing, whatever you want", hehe, I am the person who came over.
VB is actually not very difficult, although I did not study VB in school, but I mainly taught myself Winform development of VB.
You should do it.
1. Don't be afraid of making mistakes, don't think that you are hit by self-confidence when you see mistakes, mark them well, and think seriously! If you can't do it after careful consideration, ask your teachers and classmates, in fact, serious thinking does not make you have to make it, but only allows you to deepen your memory of this kind of mistake so that you will not make mistakes again in the future!
2. Listen carefully, don't think that some of the things that the teacher talks about in class are very simple, such as expressions, operators, etc., be sure to listen carefully and take good notes!
3. Practice more on the computer**, even if you hit the book**! Try to hit ** yourself, you won't Google it, the more mistakes you make at the moment you solve it, the more you learn!
In a word, learn VB well, with a heart that is not slacking off! Don't hold me so smart, just take a look at it yourself after class!
Hope you can learn well!! come on!
Big rookie to little rookie!! Ha ha.
This is the for loop, i=0, i.e. i is initialized to 0, i and then we look at the contents of the loop. >>>More
I advise you not to buy one or two hundred practice pianos, my experience tells me that kind of guitar can hinder people's practice and will also make your interest wane. >>>More
Powder or CC cream, eyebrow pencil, eyeliner, false eyelashes and glue (depending on the occasion), blush and lipstick.
Badminton Teaching Expert Pulse 15 - Full Court Movement Footwork.
For beginners, you can use liquid eyeliner with a hard nib, and then switch to a soft nib when you are proficient. >>>More