There are a number of thread on this..... here is a summary....
1. Set the cancel button cancel property to .t.
2. In the valid code....
if lastkey()!=27
whatever
endif
Tom Gahagan
Alliance
Computer Solutions
"Music, like sex, is much too important to be left to professionals."
Robert Shaw