Subject: | Re: Tcursor
| Date: | Fri, 29 Mar 2019 10:15:08 +1100
| From: | Tom Krieg <REMOVEtomkCAPITALS@sdassociates.com.au>
| Newsgroups: | pnews.paradox-programming
|
try
if tcu.open(":alias:Atable") then
if not tcu.edit() then
tcu.close()
endif
else
errorclear()
endif
This should prevent the error showing. I'm not sure about edit. a full
or exclusive lock on the table would do it but it would be rare unless
you restructure tables in code all over the place. Locks are a
completely different matter, of course and you need procedures in place
to handle record locks and lock retrys when you use tcursors.
Peter wrote on 29/03/2019 8:16 AM:
> The problem with if/endif is that if open fails then Pdox err comes up
> and I would rather it didn't so I switched to try/endTry
--
Tom Krieg
Contact me via the contact page at:
https://sdassociates.com.au
|