[ RB4] To test a cursor ?

Tim Davis timdavis at amug.org
Fri Oct 24 00:35:50 CDT 2003


Oops I goofed again. I need some sleep. TGIF!

>> Or
>>
>>     for I = 1 to curs.GetRecordCount()
>>         .....
>>         curs.NextRecord()
>>     next
>
> if curs <> nil then
> 	for i = 1 to curs.RecordCount
> 		...
> 		curs.NextRecord
> 	next
> end if

I meant to say:

if curs <> nil then
	for i = 1 to curs.RecordCount
		...
		b = curs.NextRecord   // RB wants something done with the returned 
boolean
	next
end if


Tim Davis



More information about the Valentina mailing list