VB6 - For Next Notes

Helpfulness: 0
Set Details Share
created 6 years ago by Zsaqwes8
7 views
VB6
Subjects:
programming
show moreless
Page to share:
Embed this setcancel
COPY
code changes based on your size selection
Size:
X
Show:
1

For intI = 1 To 5
frmForNext.Print intI
Next intI

Does 1-5 vertically (set AutoRedraw [True])

2

For intI = -5 To 5
frmForNext.Print intI;
Next intI

; = horizontal

3

frmForNext.Print

Moves cursor to next line

4

For intI = 1 To 5
frmForNext.Print intI,
Next intI

horizontal but using 1 inch spacing

5

For intI = 1 To 5
frmForNext.Print Tab(3); "$";
Next intI

outputs in the third column vertical

6

For intI = 1 To 50
frmForNext.Print Spc(3); "@";
Next intI

spc stands for space (3 spaces) horizontal

7

For intI = 2 To 10 Step 2
frmForNext.Print intI;
Next intI

counts by 2s horizontal

8

For intI = 10 To 1 Step -1
frmForNext.Print intI;
Next intI

frmForNext.Print
frmForNext.Print "BLAST OFF"

if stuck in infinite loop CTRL-Break