Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread Conversion error
Sun, Sep 14 2008 4:39 AMPermanent Link

Uli Becker
Hi,

just migrating another application from DBISAM: what is wrong with this code:

var
 dGebDat: TDate;
begin
 dGebDat := StrToDate('4.10.1994');
 dm.PatientenTable.Locate('Name;Vorname;GebDat',
   VarArrayOf(['Becker', 'Ulrich', dGebDat]), [loCaseInsensitive]) ;

It results in:

ElevateDB Error #1011 An error occurred with the value 34611 (A conversion error occurred)

Regards Uli
Mon, Sep 15 2008 10:05 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< It results in:

ElevateDB Error #1011 An error occurred with the value 34611 (A conversion
error occurred) >>

What does the table structure look like (including constraints and indexes,
please) ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Sep 15 2008 11:27 AMPermanent Link

UliBecker
Tim,

<<
What does the table structure look like (including constraints and indexes,
please) ?
>>

I sent you the catalog-file by mail.

Regards Uli
Tue, Sep 16 2008 6:46 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< I sent you the catalog-file by mail. >>

If you change the TDate to TDateTime, it works.  For some reason, setting
the type of the variable to TDate makes the variant handling in Delphi think
that the variable is a Double instead of an actual TDateTime.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Sep 16 2008 7:14 AMPermanent Link

"Uli Becker"
Tim,

> If you change the TDate to TDateTime, it works.  For some reason, setting
> the type of the variable to TDate makes the variant handling in Delphi
> think that the variable is a Double instead of an actual TDateTime.

OK, thanks. Though it shouldn't have worked with DBISAM either.

Regards Uli

Tue, Sep 16 2008 9:05 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< OK, thanks. Though it shouldn't have worked with DBISAM either. >>

EDB handles variants in a Locate in a completely different manner.  DBISAM
doesn't really care due to the way that it handles the variants.

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Sep 17 2008 4:49 AMPermanent Link

UliBecker
Tim,

<<
EDB handles variants in a Locate in a completely different manner.  DBISAM
doesn't really care due to the way that it handles the variants.
>>

Interesting - thanks.

Regards Uli
Image