sorry my BIG bug!


2006-05-25 05:28:21 PM
delphi147
Sorry!
I found the errore... was my bug!
much sorry...
Filippo F. writes:
Quote
Hello!
I have a TADOTable named TOre. The index field is IDOra.
My code is
[...]
var counter,counterstr:integer;
begin
[...]
TOre.Open;
TOre.Last;
counter:=TOre.FieldByName('IDOra').asinteger;
counterstr:=StrToInt(TOre.FieldByName('IDOra').asString);

The fact is that I have always counter<>conterstr
and counter seems to be always 1!!! and it would be 62664 as
counterstr is...

where's my error?
thanks in advance!
Filippo
_____________________________________
Filippo Forlani
web page: filfox.homelinux.net