ADO Absoluteposition

ADO Absoluteposition

Postby Rick Lipkin » Mon Jun 18, 2007 11:43 pm

To All

I am running a roadblock and need to be able to store a recno to an array of 10 records. The only way I know how to update a record was to store the record number of the table in an element. WHen I go update the rows .. I just goto nRecno and Update my variables.

I do not have a problem getting a "suedo" record number with :

nRec := oRs:AbsolutePosition // -- get recno()
oRs:AbsolutePosition := nRec // -- goto nRecno

However since a recordset is not exactically a static commodity .. what are the pros and cons of using the above logic in moving between ( suedo ) records ??

Unforunitly .. creating a unique sequence id per record is not an option.

Thanks
Rick Lipkin
SC Dept of Health, USA
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: ADO Absoluteposition

Postby Enrico Maria Giordano » Tue Jun 19, 2007 11:59 am

You can't use AbsolutePosition property across different recordset. The right solution is using an Id field (that you should have anyway).

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 49 guests