[ RB4] To test a cursor ?

Thierry Nauze huancaya at wanadoo.fr
Fri Oct 24 08:14:26 CDT 2003


Which is the best solution ?

cur=Base. SQLSELECT ( ... )

Which should the best test be made:

FIRST
	if  cur.recordCount < > then
	...
	else
	msgBox " Empty "
	end

SECOND
	If  cur < > NIL then
		if cur.recordCount < > then
		...
		else
		msgBox " Empty "
		end
	else
		msgBox "NIL"
	end

LAST
	if cur < >NIL then
	...
	else
	msgBox "NIL"
	end



Before the first worked fine . Not now: Often / always (?) has ' the 
Nile Obbject Exception ' returned

Is second model necessary or the third is it sufficient?
In other words, if a cursor  is not 'NIL', cursor.recordCount is not 
equal zero or can be equal zero ?

Thank you beforehand.

--
Thierry Nauze			Saint-Denis de la Réunion



More information about the Valentina mailing list