cursor and V4md client problem

Gregory Kowalski gregkowalski at earthlink.net
Fri Apr 30 18:14:25 CDT 2004


On Apr 28, 2004, at 11:00 PM, valentina-request at lists.macserve.net 
wrote:

>
>>> Just in case try kServerSide cursor,
>>>
>>>         2, 2, 2
>>>
>>
>> I just tried it with 2,2,2 - it doesn't work either and it is MUCH
>> slower.
>
> Well, then I need some project from you that reproduce your problem.
>
> Try modify existed examples.
>
> Make project as simple then possible, then may be you will find it 
> working.
> Because on our side it looks all right,

I did some simple navigation tests with V4MD_Client and found that the 
problem lies in the GoToRecord command.

This is what I did:

1. I make a query

2. I cycle forward (results appear ten at a time) - OK

3. To go backwards and display the previous ten results I do the 
following:

v = getposition(gmycursor) - 21
gotorecord gmycursor, v

repeat with i = 1 to 10
nextrecord(gmycursor)

populatefields

end repeat


I discovered that although I go to an earlier record (v),  the 
NextRecord command completely ignores the GoToRecord command.

For example cursor is at position 51.

I send it to position 30, but on nextrecord (gmycursor) the position 
will be 52 instead of 31!!!

This problem does not exist with V4MD (and I am using kRandom).



Greg




More information about the Valentina mailing list