Ayuda Urge matrices
Publicado por hikc (12 intervenciones) el 02/07/2006 03:58:41
este es mi codigo pero me anda fallando cuando pido fila y columnas
ejemplo pido 5 filas y 3 columnas me imprime
a a a
a
a
a
a
y no me rellena la segunda columna y la tercera lo que quiero es que me salga esto
aaa
aaa
aaa
aaa
aaa
espero que me puedan ayudar gracias y buen dia saludos.
Private Sub Command1_Click()
f = InputBox("Cuantas Filas")
c = InputBox("Cuantas Columnas")
R = Rnd()
For a = 1 To f - 1
i = Text1.UBound
Load Text1(i + 1)
Text1(0).Visible = True
Text1(0).Text = Int(10 * Rnd())
Text1(i + 1).Visible = True
Text1(i + 1).Top = Text1(i).Top + 1300
Text1(i + 1).Text = Int(10 * Rnd())
Next a
For b = 1 To c - 1
i = Text1.UBound
Load Text1(i + 1)
Text1(0).Visible = True
Text1(i + 1).Visible = True
Text1(i + 1).Left = Text1(i).Left + 1300
Text1(i + 1).Text = Int(10 * Rnd())
Next b
End Sub
ejemplo pido 5 filas y 3 columnas me imprime
a a a
a
a
a
a
y no me rellena la segunda columna y la tercera lo que quiero es que me salga esto
aaa
aaa
aaa
aaa
aaa
espero que me puedan ayudar gracias y buen dia saludos.
Private Sub Command1_Click()
f = InputBox("Cuantas Filas")
c = InputBox("Cuantas Columnas")
R = Rnd()
For a = 1 To f - 1
i = Text1.UBound
Load Text1(i + 1)
Text1(0).Visible = True
Text1(0).Text = Int(10 * Rnd())
Text1(i + 1).Visible = True
Text1(i + 1).Top = Text1(i).Top + 1300
Text1(i + 1).Text = Int(10 * Rnd())
Next a
For b = 1 To c - 1
i = Text1.UBound
Load Text1(i + 1)
Text1(0).Visible = True
Text1(i + 1).Visible = True
Text1(i + 1).Left = Text1(i).Left + 1300
Text1(i + 1).Text = Int(10 * Rnd())
Next b
End Sub
Valora esta pregunta


0