[V4RB] ReadOnly Cursor doesn't need to lock records, does it?

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Jan 24 19:18:30 CST 2004


on 1/24/04 9:53 AM, Richard Altenburg at valentina at brainchild.nl wrote:

> Using version 1.10 of Valentina for REALbasic, I started playing with
> Cursors after more than half a year of working on other stuff (so maybe I
> forgot some details about how Valentina used to work).
> 
> I have a window with a ListBox, that constantly shows the contents of a
> Cursor. That Cursor was created as ReadOnly, because I only need it for
> displaying purposes.
> 
> I want a second Cursor on the same BaseObject to delete records, and this
> second Cursor was created as ReadWrite. But I get an error mesage telling me
> that there is a lock on some record.
> 
> Deleting only works when I dispose the first ReadOnly Cursor (I set it to
> Nil).
> 
> I find this strange, and could need some help...

Hi Richard,

Yes, this is how it works in 1.9.8 and 1.10 now.
In similar way it works in BIG dbs also.

IF you VERY need the first cursor to show ALL records,
You can use for it NoLocks


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list