jackzhong
Structural
- Mar 15, 2002
- 8
Does anyone know how to print an array with variable dimensions in VB?
The following code won't do what I want, it outputs only one column, not rj (10 here) columns.
Open "debug.txt" For Output As #1
rm=10
rj=10
For i = 1 To rm
For j = 1 To rj
Print #1, my_array(i,j)
Next j
Next i
Close #1
What is the right code for my purpose? Thanks for your help.
Jack
The following code won't do what I want, it outputs only one column, not rj (10 here) columns.
Open "debug.txt" For Output As #1
rm=10
rj=10
For i = 1 To rm
For j = 1 To rj
Print #1, my_array(i,j)
Next j
Next i
Close #1
What is the right code for my purpose? Thanks for your help.
Jack