Tema: Duda con for
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/12/2008, 05:51
magTpeak
 
Fecha de Ingreso: septiembre-2007
Mensajes: 189
Antigüedad: 16 años, 8 meses
Puntos: 1
Duda con for

HOla, estoy haciendo un bucle y no me funciona esto:
Código:
For i = 0 To 12 Step 1
Textf(i).Text = Textf(1).Text
Next
Es para ahorar lineas y no poner:
Textf(1).Text = Textf(1).Text
Textf(2).Text = Textf(1).Text
Textf(3).Text = Textf(1).Text
Textf(4).Text = Textf(1).Text
Textf(5).Text = Textf(1).Text
..........
Y no me funciona Me dice: "El elemento 0 del matriz de controles no existe" y se colorea la linea 2, o sea:
Textf(i).Text = Textf(1).Text
Saludos y gracias de antemano!