[ RB4] To test a cursor ?
Ruslan Zasukhin
sunshine at public.kherson.ua
Fri Oct 24 09:43:09 CDT 2003
on 10/24/03 9:10, Deane Venske at dean at eduss.com wrote:
> That is in fact how I did have it previously. I am going to change it
> back. The only problem with this loop is you MUST check for
> cursor.firstRecord() = True before running the do loop.
Yes.
Well,
I think after cursor build you have 2 safe checks:
curs <> nil
Or
db.ErrNumber
You can write for example:
if curs <> nil and curs.FirstRecord
do
...
while curs.NextRecord
endif
Or
for I = 1 to curs.GetRecordCount()
.....
curs.NextRecord()
next
--
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