Subject | Re: [IBO] Re: DisplayFormat issue - EConvertError |
---|---|
Author | Helen Borrie |
Post date | 2010-11-21T19:09:36Z |
At 05:07 AM 22/11/2010, Joe wrote:
Helen
>Anyone???It looks correct for FormatFloat...but I suspect you are getting problems from trying to use TIBO data access components with the TIB_ controls. They are not compatible.
>
>Even if you don't know why I'm getting the error I'm getting, I would really appreciate it if someone could point me to the documentation that explains the syntax for DisplayFormat.
>
>-Joe
>
>--- In IBObjects@yahoogroups.com, "Joe" <joe@...> wrote:
>>
>> I am trying to use the DisplayFormat attribute to display a numeric value as curency (i.e. $12.33) in a TIB_Grid. The grid is attached to a TIB_Query.
>>
>> I set the DisplayFormat to: $###,###,##0.00
>>
>> When I have it set like that, if the grid attempts to display a value that has cents in it (that is, not a whole number), I get the following exception: "Project MYPROJECT.exe raised exception class EConvertError with message "1.45" is not a valid integer value"
>>
>> If I remove the DisplayFormat setting, I don't get the exception.
>>
>> The field in question is defined as a TIBOFloatField.
>>
>> Did I set the DisplayFormat incorrectly?
Helen