![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 3
Rep Power: 0
![]() |
Loops!
Sorry guys, begginer here, im trying to output a list of timestables
eg 1 x 6 = 6 2 x 6 = 12 3 x ... but im really struggling with outputting the 'x 6 =' i.e the loop for the numbers is obviously easy but im not sure how to attach the fixed text each time. Any ideas? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() |
your going to need two different for loops. one for the first number and one for the second number.
so something like this: for x=0 to 12 step 1 for y=0 to 12 step 1 answer = x * y lblMyLabel.Caption = lblMyLabel.Caption & vbCrLf & x & "x" & y & "=" & answer Next y Next x
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! Last edited by Pizentios; Mar 30th, 2005 at 4:52 PM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|