Problem with OnCalcFields() Event.
- From: tanaskovskij@xxxxxxxxxxx
- Date: 4 Oct 2005 04:01:10 -0700
Parameters:
Delphi6.0, DB- MSSQL, ADO Connection;
J have table with > 3000000 records and ADODataSet (SELECT * FROM
PTABLE WHERE LONG='Parameter') that return recordsets with 1..200
records. The result J display in DBGrid.
J need to have numbers on every record in DBGrid.
My aproach was to make calculated field and write onCalcField event
where ADODataSet.FieldByName('RecordNum').Value:=ADODataSet.RecNo.
Since RecNo is documented as function that returns the actual position
in resulting record set. J have result -1 for first record and OK for
others, but when J add new record and requery, the numbers are also not
well.
Anyone has same problem,
.
- Follow-Ups:
- Re: Problem with OnCalcFields() Event.
- From: Bjørge
- Re: Problem with OnCalcFields() Event.
- Prev by Date: Re: Newbie Indy TCPclient - TCPserver question
- Next by Date: Re: REG_BINARY
- Previous by thread: REG_BINARY
- Next by thread: Re: Problem with OnCalcFields() Event.
- Index(es):
Relevant Pages
|