To start with....I'm a novice, but like VB, for as short as i use it already.
I started with simple coding, but would like to reduce my coding now.
e.g.
I made a calculation pgm with 10 entries.
Therfore I made 10 labelfields (Lbl1, Lbl2, etc...) which I like to fill in a for next loop.
The calculation I can compose in a string. Now I also like to fill this label fiels on my screen.
(To show the calculation i make)
I can do it in a select case statement ....select 1 etc......
But I think it can better be done in that same: for next.
for x = 1 to 10
Calc =str( x) + "x" +str (inputfield)+"="
'This text results in 10 different lines.
???? lbl1.caption = Calc
'And other statements in the for/ next loop
next
On my screen I want:
1 x 365 =
The thing I want to do/know is: how can I adjust these Formvariables in a loop.
In such a way that I can fill them with the different strings.
Something like
Lbl(x).Caption
I see a lot of the same questions on the web, but no answers to it.
Perhaps I do not look with the right keywords.....??
Can someone help me? I think it reduces a lot of coding for me (I hope).
Thanks in advance
I started with simple coding, but would like to reduce my coding now.
e.g.
I made a calculation pgm with 10 entries.
Therfore I made 10 labelfields (Lbl1, Lbl2, etc...) which I like to fill in a for next loop.
The calculation I can compose in a string. Now I also like to fill this label fiels on my screen.
(To show the calculation i make)
I can do it in a select case statement ....select 1 etc......
But I think it can better be done in that same: for next.
for x = 1 to 10
Calc =str( x) + "x" +str (inputfield)+"="
'This text results in 10 different lines.
???? lbl1.caption = Calc
'And other statements in the for/ next loop
next
On my screen I want:
1 x 365 =
The thing I want to do/know is: how can I adjust these Formvariables in a loop.
In such a way that I can fill them with the different strings.
Something like
Lbl(x).Caption
I see a lot of the same questions on the web, but no answers to it.
Perhaps I do not look with the right keywords.....??
Can someone help me? I think it reduces a lot of coding for me (I hope).
Thanks in advance