Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 21 to 30 of 39 total |
Currency fields in EDB. |
Fri, Mar 28 2008 4:22 PM | Permanent Link |
Abdulaziz Jasser | Tim,
<<If it cannot be done by SQL. Then how to create a float field with a certain numbers of decimals? I tried to use DECIMAL (20,2) but I still can edit this field with more than two decimals.>> Sorry, never tried DECIMAL, but FLOAT(20,2) does not work. |
Sat, Mar 29 2008 6:56 AM | Permanent Link |
Uli Becker | Tim,
> Well, first of all, I wouldn't suggest using Float fields for currency > storage, period. I would use a DECIMAL or NUMERIC (same thing) column type > instead. That's interesting. Why does the migrator then change currency fields to float fields? Regards Uli |
Sat, Mar 29 2008 8:17 PM | Permanent Link |
Abdulaziz Jasser | Tim,
> Well, first of all, I wouldn't suggest using Float fields for currency > storage, period. I would use a DECIMAL or NUMERIC (same thing) column type > instead. What about compatibility? |
Sat, Mar 29 2008 8:49 PM | Permanent Link |
Abdulaziz Jasser | Abdulaziz Jasser <jasser@cyberia.net.sa> wrote:
Tim, <<If it cannot be done by SQL. Then how to create a float field with a certain numbers of decimals? I tried to use DECIMAL (20,2) but I still can edit this field with more than two decimals.>> <<Sorry, never tried DECIMAL, but FLOAT(20,2) does not work.>> It does not work. I will have to do all alot of work becuase of the SQL. So much to pay. |
Sun, Mar 30 2008 10:08 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Abdulaziz
>What about compatibility? You can only go so far with compatibility -ask M$ Roy Lambert [Team Elevate] |
Sun, Mar 30 2008 10:08 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Abdulaziz
>It does not work. I will have to do all alot of work becuase of the SQL. So much to pay. In what way does it not work? Roy Lambert [Team Elevate] |
Mon, Mar 31 2008 4:34 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Uli,
<< That's interesting. Why does the migrator then change currency fields to float fields? >> It doesn't - Delphi does. All of this is Delphi, and has very little to do with EDB. -- Tim Young Elevate Software www.elevatesoft.com |
Mon, Mar 31 2008 4:36 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Abdulaziz,
<< Sorry, never tried DECIMAL, but FLOAT(20,2) does not work. >> You cannot create a FLOAT field with a certain number of decimals in either DBISAM or ElevateDB. Delphi controlled the number of decimal places via the edit and display masks that it used, but DBISAM did not control this. This is one of the major reasons why you should be using DECIMAL or NUMERIC (BCD in DBISAM) instead. -- Tim Young Elevate Software www.elevatesoft.com |
Tue, Apr 1 2008 3:05 AM | Permanent Link |
Uli Becker | Tim,
> It doesn't - Delphi does. All of this is Delphi, and has very little to do > with EDB. Misunderstanding - I mean: an old currency-field in DBISAM is converted into a float-field when using the DBISAM-EDB-converter. Furthermore there could be serious problems truncating values instead of rounding them, if you replace a float (currency)-field by a decimal field. Uli |
Tue, Apr 1 2008 7:07 AM | Permanent Link |
Abdulaziz Jasser | Tim,
Roy, <<You cannot create a FLOAT field with a certain number of decimals in either DBISAM or ElevateDB. Delphi controlled the number of decimal places via the edit and display masks that it used, but DBISAM did not control this. This is one of the major reasons why you should be using DECIMAL or NUMERIC (BCD in DBISAM) instead.>> Let say I decided to use DECIMAL type as the currency field. This field is used in the "OnCalcFields" event of the TEDBtable component that used to open memory table. I get an error saying the field does not exist. I usually define a field with the same name as an aggregate field to come over this error. The question: what type should I use when defining this field as aggregate field to make it compatible with DECIMAL type? |
« Previous Page | Page 3 of 4 | Next Page » |
Jump to Page: 1 2 3 4 |
This web page was last updated on Sunday, May 19, 2024 at 08:46 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |