David Crooks wrote:

I am getting a "File is in use by another user." error when doing  an
SQL Insert Into.  How can I prevent this error?  TIA!


What about trapping it in an error handler like so (warning: pseudocode not tested!):

llInserted = .F.
do while NOT llInserted
try
 insert into MyTable (cName, iAge) values ('Mike Babcock',35)
 llInserted = .T.
catch to loException with loException.ErrorNo = 3
 * here's your scenario being caught
catch to loException
* whoops, something else went wrong...perhaps bubble up and report out of loop?
endtry
enddo


--
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to