| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#21
| |||
| |||
| 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 |
|
#22
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.