Está perdiendo oportunidades comerciales:
- Aplicaciones de trading gratuitas
- 8 000+ señales para copiar
- Noticias económicas para analizar los mercados financieros
Registro
Entrada
Usted acepta la política del sitio web y las condiciones de uso
Si no tiene cuenta de usuario, regístrese
Si los nombres de los botones no son números, los nombres se almacenarán en una matriz.
No sé si este es el enfoque correcto, pero resuelve el problema
Puede que sí, no lo he probado.
Decidí algo diferente
No he comprobado tu última variante, pero sospecho que si se pulsa el índice del botón 10 y luego se pulsa el índice 9, entonces el índice 10 no se pulsará porque el bucle se rompe en el índice 9...