PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → How to interrupt a procedure in fListFile
How to interrupt a procedure in fListFile
Débuté par Frans, 27 jan. 2005 21:45 - 1 réponse
Posté le 27 janvier 2005 - 21:45
Hello to you al,
Has anyone an idea how to interrupt the procedure called in the fListFile command.
In my case it has to read 5000 pictures in a hyperfile. The user has got to have the possibility to interrupt this because it takes minutes to read it al. I know how to interrupt a loop but this loop is inside fListFile.
Regards Frans
Posté le 30 janvier 2005 - 17:23
Just put in your procedure the line:
Result false

it will interrupt the loop... After that, to find out WHEN to interrupt the loop, you can have a button in which the code sets a flag (if you have a multitask(-1) in your procedure), or you can use an api call to see if the esc key has ben pressed since your last loop...

cordially

Fabrice Harari
Development manager
fabriceh@selltis.com