How to use the same button several times

I have the following problem:
I need to enter a value in a textBox between 01 to 407 and an OK button to confirm the value. I used the if & else if conditions, but I need to have those conditions 407 times. That is, for each number it will perform an action. The problem is that the limit of 407 is too big and the overflow error. Thinking about it, I would like to create a way to use the same OK button to use 4 times, that is. it would be used in 4 different blocks.

You need to learn about lists :slight_smile:

Learn about using lists:

General Tutorials

You also need to learn about data bases a bit.

It looks like you are trying to keep a car dealership in blocks, car by car, block by block.

Estou criando uma lista de dados de motores elétricos e suas aplicações, para cada motor é predefinido um número entre 01 a 407. Onde uma vez quando o valor é atribuído, me retorna os dados do dito motor. Porém utilizando o comando "SE, SENÃO" ele estoura o limite quando chega em em mais ou menos 130 condições, ou seja. Se fosse de 01 a 130 ele iria funcionar perfeitamente.
Queria apenas uma solução viável para poder resolver.