[V4RB] CurrentPosition

Christer Olsson christer at ljusaideer.se
Wed Jun 9 08:21:41 CDT 2004


>On 6/8/04 10:51 PM, "Christer Olsson" <christer at ljusaideer.se> wrote:
>
>> Why is curs.Currentposition 1 at myBreakPointHere in my code below? i is 15,
>> just as it should be.
>> 
>> curs = db.SqlSelect( "SELECT RecID,* FROM table" )
>> curs.CurrentPosition = 15
>> i = curs.ULongField("RecID").Value
>> myBreakPoinHere
>
>I think you need specify kRandomAccess when you create cursor.

I tried that, too, before posting to the list - with the same result.
But if I need to specify kRandomAccess, why is i = curs.ULongField("RecID").Value giving back the value for record 15 instead of record 1?
-- 

  *************************************************************
  Christer Olsson   PO Box 9160        Phone +46 40 25 85 85
  Ljusa Idéer AB    SE-200 39 Malmo    Fax +46 40 25 85 89
  Kantyxegatan 5    Sweden             http://www.ljusaideer.se


More information about the Valentina mailing list