Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 20 of 39 total
Thread Currency fields in EDB.
Wed, Mar 26 2008 3:37 PMPermanent 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 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email 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 PMPermanent 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 AMPermanent 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 Frown
Thanks for pointing that out Smiley

Regards Uli
Thu, Mar 27 2008 2:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email 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 PMPermanent 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 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email 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 PMPermanent 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 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email 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 PMPermanent 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 PagePage 2 of 4Next Page »
Jump to Page:  1 2 3 4
Image