Problem with more than one cursor in use.

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Sep 25 08:16:15 CDT 2003


on 9/25/03 1:38 AM, Kevin Windham at kevo at gatorgraphics.com wrote:

Hi Kevin,

> I'm using RB 5.2.1 and V4RB 1.9.8.
> 
> It seems that if I have a method that uses a cursor, and I don't nil it
> before calling another method that creates a cursor, that I end up with
> a nil cursor in the second method.
> 
> Shouldn't I be able to have more than one cursor at a time?
> 
> Could this be a problem with locking? I know I can't have 2 r/w cursors
> on the same record, but should I be able to have one r/w and one r/o
> cursor on the same record?

Also no.

If somebody LOCK records as READ WRITE, he get EXCLUSIVE lock on it.

If you very need second cursor in such situation,
You can make second cruor as NO LOCK. But be sure not to change records via
it.

-- 
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