dbServer:seek failure in 2.8 -CDX

This is a discussion on dbServer:seek failure in 2.8 -CDX within the Clipper forums in Programming Languages category; On Sep 2, 2:03*am, "Paul D B" <poll...@NOMORESPAMhnt.be> wrote: > Pedro M. Espinosa wrote: > > > Paul: > > Thanks for agreeing with me on the code. > > Is Skip(0) faster? otherwise it woudn't make any difference as I will > > seek each time arround. > > Well just peeked into the SDK and no it will not make a difference > because: > IF IsNil(nRecordCount) > iRecords := 1 > > so it is the same as skip(1) > funny, I always thought skip(0) meant to stay on the current record > > -- > > ...

Go Back   Application Development Forum > Programming Languages > Clipper

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #21  
Old 09-02-2008, 09:30 PM
Pedro M. Espinosa
Guest
 
Default Re: dbServer:seek failure in 2.8 -CDX

On Sep 2, 2:03*am, "Paul D B" <poll...@NOMORESPAMhnt.be> wrote:
> Pedro M. Espinosa wrote:
>
> > Paul:
> > Thanks for agreeing with me on the code.
> > Is Skip(0) faster? otherwise it woudn't make any difference as I will
> > seek each time arround.

>
> Well just peeked into the SDK and no it will not make a difference
> because:
> IF IsNil(nRecordCount)
> iRecords := 1
>
> so it is the same as skip(1)
> funny, I always thought skip(0) meant to stay on the current record
>
> --
>
> Paul


Paul

> funny, I always thought skip(0) meant to stay on the current record


And it is, Nil != 0

Best regards
Pedro
Reply With Quote
  #22  
Old 09-03-2008, 03:27 AM
Paul D B
Guest
 
Default Re: dbServer:seek failure in 2.8 -CDX

Pedro M. Espinosa wrote:
> On Sep 2, 2:03 am, "Paul D B" <poll...@NOMORESPAMhnt.be> wrote:
>> Pedro M. Espinosa wrote:
>>
>>> Paul:
>>> Thanks for agreeing with me on the code.
>>> Is Skip(0) faster? otherwise it woudn't make any difference as I
>>> will seek each time arround.

>>
>> Well just peeked into the SDK and no it will not make a difference
>> because:
>> IF IsNil(nRecordCount)
>> iRecords := 1
>>
>> so it is the same as skip(1)
>> funny, I always thought skip(0) meant to stay on the current record
>>
>> --
>>
>> Paul

>
> Paul
>
>> funny, I always thought skip(0) meant to stay on the current record

>
> And it is, Nil != 0
>
> Best regards
> Pedro


yep, you're right, Nil is not 0 (though in Dutch 0 = Nul, which adds to
the confusing).
So, what does a skip(0) do then? Not a lot, if you see the code in the
SDK..

--
Paul

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:51 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.