cursor and V4md client problem

Gregory Kowalski gregkowalski at earthlink.net
Sun Apr 25 14:01:29 CDT 2004


On Apr 25, 2004, at 12:21 AM, valentina-request at lists.macserve.net 
wrote:

>
>>>> Hello,
>>>>
>>>> I have encountered a cursor navigation problem when passing from 
>>>> V4MD
>>>> to V4MD Client.  I have the project set up so that the query results
>>>> appear in a table ten at a time.  There are navigation buttons for
>>>> NEXT
>>>> 10 and PREVIOUS 10.
>>>>
>>>> The project was developed with V4MD and worked great.  Then I tested
>>>> it
>>>> with V4MD Client and found that when navigating backwards (previous
>>>> 10)
>>>> everything falls out of line (moving forward everything is fine).  I
>>>> should add that I didn't touch any of the cursor code.
>>>>
>>>> Any help would be appreciated.
>>>
>>> Hi Gregory,
>>>
>>> I think you need simply add to cursor creation parameter
>>>
>>>         Random
>>>
>>> On default Valentina make ForwardOnly cursor.
>>>
>>> Check docs of VCursor
>>>
>>>
>>
>>
>> The cursor parameter is set to random.  As I said, it works perfectly
>> with V4MD.  When switching to V4MD_Client no cursor code was changed
>> yet it does not behave the same way.
>
> V4MD actually ignore all that parameters!!!
> So this is not a reason.
>
> Okay, show how you create cursor? Your line of code?


My code for the cursor is:

  gMyCursor = new( xtra "VCursor", GetRef(gMyDB), whichSearch, 1, 2, 2)


Greg





More information about the Valentina mailing list