>I build a from, the first is a customer no. (there has valid about cannot be empty).
>But sometime i want to quit there, the system not allow for me to quite. Cuase there
>is empty at customer no.
>
>I want to keep the function to check ist already code in file, after the user keyin.
>
>Who to do that???
>
>Best wish
In the VALID() for the Cust.No. put
if lastkey() = 27
RETURN .T.
else
endif
HTH
Barbara