<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Mar 30, 2014, at 5:04 PM, Johnny Harris <<a href="mailto:johnny@southshore.com">johnny@southshore.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html charset=windows-1252" http-equiv="Content-Type">
<div style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space" dir="ltr">
<div dir="ltr">
<div style="font-size: 12pt; font-family: Calibri;">
<div>Ivan,</div>
<div> </div>
<div>I can update the record now using the cursor.UpdateRecord method, but the
lock stays on the record unless I close the connection (VConnection).</div>
<div> </div>
<div>Is there a way to release the lock without having to close the
connection? Sorry for such a basic question, but I can find anything in the
docs.</div>
<div> </div>
<div>In my code for the Update you can see I call a CloseDatabase() method in my
class, but it only closes the connection if a flag is set to True, otherwise
the</div>
<div>connection is kept open.</div>
<div> </div>
</div></div></div></blockquote></div><div><br></div>You should close (destroy) the cursor to release all the locks.<div>See our examples.</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>-- <br>Best regards,<br>Ivan Smahin<br>Senior Software Engineer<br>Paradigma Software, Inc<br>Valentina - The Ultra-Fast Database<br><a href="http://www.valentina-db.com/">http://www.valentina-db.com</a></div></span>
</div>
<br></div></body></html>