>Thanks for reply Hector!
>
>It doesn´t works, but I remember an old instruction: Inkey(). It´s just question to use:
>
>If Inkey() = 28
> exit
>endif
>
>Thanks anyway Hector!
Instead of F1 use ESC for loop termination. lastkey()=27. F1 is reserved for Help file and it would be a non-standard interface, if you use F1 for another action.
If it's not broken, fix it until it is.
My Blog