Nil Cursors using Server ?

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Apr 25 08:50:37 CDT 2004


On 4/25/04 8:19 AM, "Barney" <barney at custombased.com> wrote:

Hi Barney,

> Looking to convert an app to being served.
> 
> Suddenly I am getting Nil cursors ?
> 
> We have never had Nil cursors before in Valentina ? I have always
> checked for... 
> 
> If Cur.RecordCount > 0 then
> //Carry on
> End if
> 
> but never a nil cursor before. I must have hundreds and hundreds
> of the above lines of code scattered throughout a couple of apps.
> 
> Does this mean they all must be replaced with...
> 
> 
> If Cur <> Nil AND Cur.RecordCount > 0 then
> 
> //carry on
> 
> end if
> 
> ... very concerning ?
> 
> Have I missed something ? Any advice would be greatly appreciated.

Was returned some error also?

It is strange because V4RB and V4RB_Client use the same wrapper code.

I think from OOP more correct return nil.
Because if we cannot create cursor then why spend time on creation of object
and its destruction.

So I think in any case add check if( curs <> nil )


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