How do I break the cycle by pressing Cancel?

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

How do I break the cycle by pressing Cancel?

#1 Post by Eugene Lutsenko »

How do I break the cycle by pressing Cancel?

Code: Select all

   DO WHILE .NOT. EOF()

      lStatus=DC_CompleteEvents();IF lCancelled;EXIT;ENDIF           // Выход из цикла загрузки по нажатию клавиши Cancel
It doesn't work for me.

I tried a few more different options, for example with lStatus, but nothing worked

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: How do I break the cycle by pressing Cancel?

#2 Post by Tom »

You must use separate threads, one for the dialog showing the "cancel"-button, one for the DO-WHILE-NOT-EOF()-loop (which maybe startet from the dialog). If the button is pressed, you maybe set a var or a get-set-function, which's result is used in the loop.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply