ejecutar texto
Publicado por edic (40 intervenciones) el 25/06/2012 23:30:40
hola amigos como se puede hacer esto:
tengo varios controles (Command del 1 al 8,"un boton") y quiero que con un for cambiar el numero del control con una variable.
Command1.Value = 1
Command2.Value = 1
Command3.Value = 1
Command4.Value = 1
Command5.Value = 1
Command6.Value = 1
Command7.Value = 1
Command8.Value = 1
ej: for variable=1 to 8
Command & variable.Value = 1
next
pero sin crear una matriz de controles y variar la matriz
Command1(1).Value = 1
yo quiero seleccionarlos como el ejemplo pero no funciona
gracias
tengo varios controles (Command del 1 al 8,"un boton") y quiero que con un for cambiar el numero del control con una variable.
Command1.Value = 1
Command2.Value = 1
Command3.Value = 1
Command4.Value = 1
Command5.Value = 1
Command6.Value = 1
Command7.Value = 1
Command8.Value = 1
ej: for variable=1 to 8
Command & variable.Value = 1
next
pero sin crear una matriz de controles y variar la matriz
Command1(1).Value = 1
yo quiero seleccionarlos como el ejemplo pero no funciona
gracias
Valora esta pregunta


0