![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 7 of 7 total |
![]() |
Sun, Sep 14 2008 4:39 AM | Permanent 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 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | 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 AM | Permanent 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 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | 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 AM | Permanent 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 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | 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 AM | Permanent 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 |
This web page was last updated on Wednesday, August 14, 2024 at 07:31 PM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |