Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attempting to lock .......

Status
Not open for further replies.

baudouxf

Programmer
Jan 17, 2003
12
BE
Hello champions,

Do you have any idea how to 'trap' this message appearing in bottom of FOX screen when we try to edit a record locked by another user.

The goal is to display a messagebox in case of record locked.


Thanks all

Francis
 
Francis,

Depends how you are locking the record. One option is to check the reply from RLOCK() or whatever, and display your message at that point. Another possibility is to use your error-handler to trap error 109 -- that will work whether you are using RLOCK() or buffering with pessimistic locking.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top