pushbotton - Forum

Forum Navigation
You need to log in to create posts and topics.

pushbotton

hola , queria preguntar si pulso un pushbotton  con unas ordenes y pulso otro pushbotton me he dado cuenta que si no ha leeido todas las ordenes del primero , carga las ordenes del segundo y despues continua cargando las ordenes del primero hay alguna forma que cuando pulse un boton cargue todo y despues las del segundo y no que carque parte del primero despues carga el segundo y despues continua con las del primero

Hello!

You can put a condition on the first button. For example, using the While loop.
And on the second button, change the value of the variable, which is monitored by a cycle.

Thus, part of the code on the first button will continue only after the code on the second button has been executed.

I hope I understood the question correctly.

thank

yes I understand

@juancarlos

Another method would be use DisableObject/EnableObject commands i.e. ...

- at the start of long processes, disable any other Button object(s) that you don't want the user to activate until this process is completed
- at the end of this long process, re-enable the previously disabled Button object(s)

... optionally, you can also use the Balloon or StickyNote commands to keep the user informed of this long running process.

You might also check out the Help info on the Suspend command (https://winhelp.visualneo.com/Control.html#SUSPEND) to see if it would be appropriate in your scenario.

 

i am used the while and ok and now the suspend and good is more eays minor code only suspend true and false

i thought the disable pushbutton but the suspend is the best for me

thank for us