cursors

Florian Bogeschdorfer fb at memedia.de
Tue Aug 30 09:36:34 CDT 2005


> >
> > on queen query, bank
> >   kServer = 2
> >   kReadWrite = 3
> >
> >     curs = 0

By the way: the upper line should delete the cursor and therefore unlock the
record, but it must me a global variable (global curs), otherwise you will
keep producing new cursors without closing them correctly.

Florian


> >     curs = new(xtra "VCursor", GetRef(gMb), query, kServer, kReadWrite)
> >     ccurs = GetRecordCount(curs)
> > end
> >
> 
> > if I use it once, everything is ok, but as soon I try to use it another
> time
> > I get error messages.
> >
> > error 363
> > error 5
> 
> 363 - this is record lock error.
> 
> This means that first cursor have lock records as ReadWrite,
> And second cursor try to access them




More information about the Valentina mailing list