Hi -
How can you format a currency field and specify the format of the nunber in property inspector WITHOUT entering explicit currency format symbols such as "£" ?
I am using RAD studio XE2. I know there is a "Currency" which is a yes/no type property in the property inspector - but the problem is - just setting this does not take care of the numeric formatting I require.
If I set the "Currency" property to true, I get the correct currency symbol being shown (taken from regional settings on the users system). However, the number of digits is wrong. For example, in the case of say £21.50, you get £21.5.
If I set the DisplayFormat value to pad out the number with zeros (as you would expect for currency) I loose the currency symbol!
Is there a way to flag the field as being currency AND specifying how many digits to show ?
I guess I could do this from code, but this would slow the whole thing down.
Any help would be much appreciated.
Cheers,.,
Dave.
How can you format a currency field and specify the format of the nunber in property inspector WITHOUT entering explicit currency format symbols such as "£" ?
I am using RAD studio XE2. I know there is a "Currency" which is a yes/no type property in the property inspector - but the problem is - just setting this does not take care of the numeric formatting I require.
If I set the "Currency" property to true, I get the correct currency symbol being shown (taken from regional settings on the users system). However, the number of digits is wrong. For example, in the case of say £21.50, you get £21.5.
If I set the DisplayFormat value to pad out the number with zeros (as you would expect for currency) I loose the currency symbol!
Is there a way to flag the field as being currency AND specifying how many digits to show ?
I guess I could do this from code, but this would slow the whole thing down.
Any help would be much appreciated.
Cheers,.,
Dave.