I´m writing a program that controls a machine using serial communication. I have to send coördinates taken from a excel document true the serial port. This all works fine but i have to insert a STOP button. My problem is powerbuilder can´t detect wether i´m pressing the button or not.
i think this is because i am using an FOR..NEXT statement.
let me explain:
the program can be busy in the FOR..NEXT statement for about an hour...while the machine isn´t ready it keeps sending coördinates. during that time the program is only looping in ONE statement. in my statement i have used the script
if cb_stop.enabled = false
but i can´t press the stop button because powerbuilder is too busy looping the FOR..NEXT statement..
is there any solution for this problem??
Thanks in advance
ps. I hope i´ve made my problem clear but it´s very hard to describe for me in english...