Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use ESC To Interrupt a Runaway Query
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Use ESC To Interrupt a Runaway Query
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003264
Message ID:
01003264
Views:
66
I have a form that uses one of 20 or 30 views that query Foxpro 2.6 native tables. Which view is used is determined by which table the user wishes to search and by what criteria. I use the following syntax to either open the view with the specified criteria or Requery it.
 IF USED(srView)
   REQUERY(srView)
 ELSE
   USE (srView) IN 0
 ENDIF
Is it possible to allow the user to hit the ESCAPE key to interrupt the command "cleanly"? I want them to be able to stop the query if they accidentally begin the search without specifying all their criteria. I set ESCAPE OFF by default in the setup program of my application.

Thank you.
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Next
Reply
Map
View

Click here to load this message in the networking platform