Newbie, V4RB - new issue with cursors

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Nov 18 11:19:33 CST 2003


on 11/18/03 3:41 AM, Mike Dodd at doddme at mindspring.com wrote:

Hi Mike,

> I am having some trouble with cursors -
> 
> Function A has a cursor in READ/WRITE mode because I will delete from within
> this function.  It has several records, I run through these records within a
> loop, I call Function B from within Function A :  I try to get another
> cursor - READ ONLY  mode with that same record - the cursor comes back Nil

Yes, because READ-WRITE lock has other name  "EXCLUSIVE LOCK"

Nobody else can set even READ LOCK.

You still can create second cursor using NO LOCK

  
> I think I know what is happening - the cursor in Function A has a LOCK on
> the records, so when Function B cursor tries to go out there it cannot get
> those records, BUT I believe that since it is for READ only access it should
> allow for it.   Granted I worked around the problem with a global cursor for
> the window.
> 
> I tested by changing the mode in Function A to READ ONLY, the Function B
> cursor was able to open the records for READING.

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