Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 11 to 20 of 39 total |
Currency fields in EDB. |
Wed, Mar 26 2008 3:37 PM | Permanent Link |
Abdulaziz Jasser | Roy,
I already know the right syntax. It was just a typing mistake. The real problem is that I cannot limit the decimals to one used when creating this field when editing the money field through a dbgrid. Plus, this DECIMAL field does not give any attention/respect to the currency settings in Delphi. In DBISAM3 it was like doing nothing. |
Wed, Mar 26 2008 4:48 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Abdulaziz,
<< What do you mean? After migrating a DBISAM3 to EDB database all the currency fields became FLOAT and they don't respect the currency settings any more! >> Currency fields in Delphi are just float fields with built-in currency formatting. Just set the Currency property of the TFloatFields to True, and you'll be all set. -- Tim Young Elevate Software www.elevatesoft.com |
Wed, Mar 26 2008 5:57 PM | Permanent Link |
Abdulaziz Jasser | Tim,
<<Currency fields in Delphi are just float fields with built-in currency formatting. Just set the Currency property of the TFloatFields to True, and you'll be all set.>> I have a complete knowledge of that. What about those currency variables in Delphi? Can they be applied automatically by EDB like DBISAM without reformatting the fields? |
Thu, Mar 27 2008 5:16 AM | Permanent Link |
Uli Becker | Tim,
> Just set the Currency property of the TFloatFields to True, and > you'll be all set. With EDB I used the DisplayFormat property to show currency values. Didn't see the currency-property at all Thanks for pointing that out Regards Uli |
Thu, Mar 27 2008 2:45 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Abdulaziz,
<< I have a complete knowledge of that. What about those currency variables in Delphi? Can they be applied automatically by EDB like DBISAM without reformatting the fields? >> I'm not sure what you mean. Variables are handled entirely by Delphi, not by DBISAM or EDB. -- Tim Young Elevate Software www.elevatesoft.com |
Fri, Mar 28 2008 3:34 PM | Permanent Link |
Abdulaziz Jasser | Tim,
<<I'm not sure what you mean. Variables are handled entirely by Delphi, not by DBISAM or EDB.>> In DBISAM when you define a field as Currency it automatically adjust the number of decimals, currency string, thousand separator…etc to the one predefined in Delphi. Now it doesn't. I have to reformat everything myself to make this field appears like a real currency field. I hope the point is clear now. |
Fri, Mar 28 2008 3:48 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Abdulaziz,
<< In DBISAM when you define a field as Currency it automatically adjust the number of decimals, currency string, thousand separator…etc to the one predefined in Delphi. Now it doesn't. I have to reformat everything myself to make this field appears like a real currency field. I hope the point is clear now. >> DBISAM didn't do that - Delphi did. All DBISAM did was indicate that the field was a Currency/Float field. Since ElevateDB only uses the SQL standard FLOAT or DOUBLE designation, it can't possibly know which columns you want to be used for storing currency values. -- Tim Young Elevate Software www.elevatesoft.com |
Fri, Mar 28 2008 4:09 PM | Permanent Link |
Abdulaziz Jasser | Tim,
<<DBISAM didn't do that - Delphi did. All DBISAM did was indicate that the field was a Currency/Float field. Since ElevateDB only uses the SQL standard FLOAT or DOUBLE designation, it can't possibly know which columns you want to be used for storing currency values.>> Can this feature be added to the SQL to make Delphi do it job? It would save us (the developers) a lot of coding. |
Fri, Mar 28 2008 4:15 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Abdulaziz,
<< Can this feature be added to the SQL to make Delphi do it job? It would save us (the developers) a lot of coding. >> 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. Secondly, no, I don't think that we'll be adding this to ElevateDB. It was a remnant of the BDE/Paradox compatibility and it doesn't translate well to other client front-ends. It's similar to the Graphic and FmtMemo types in this respect. -- Tim Young Elevate Software www.elevatesoft.com |
Fri, Mar 28 2008 4:16 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. |
« Previous Page | Page 2 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 |