[ RB4] To test a cursor ?

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Oct 24 10:24:57 CDT 2003


on 10/24/03 10:19, Tim Davis at timdavis at amug.org wrote:

> if curs <> nil then
> for i = 1 to curs.RecordCount
> ...
> curs.NextRecord
> next
> end if
> 
> Is there any issue that might come up by ignoring the NextRecord
> boolean and relying solely on the RecordCount?

If you do not delete records inside of loop then no problems.

FOR use more data than needed, but some guys love for loops.


> Now we've covered all three REALbasic loops to cycle through cursor
> records.   : )

yes

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