Subject | Re: [IBO] Re: Problem with IB_Currency and negatives values |
---|---|
Author | Andrei Luís |
Post date | 2010-12-09T17:11:47Z |
Hi Helen, thanks for your answer.
I still don't understand what is happening. For testing purposes, I
put one tib_edit and one tib_currency and set datasource and datafield
of both to the same datasource and field. In TIB_Edit, I can enter the
value -0.50, it appears in TIB_Currency, but if I click to 'enter' in
TIB_Currency, the - signal dissapears! When I exit the TIB_Currency
the - signal appears again!
After your message I set currency property to true, same behavior.
[]s
Andrei
2010/12/8 Helen Borrie <helebor@...>:
I still don't understand what is happening. For testing purposes, I
put one tib_edit and one tib_currency and set datasource and datafield
of both to the same datasource and field. In TIB_Edit, I can enter the
value -0.50, it appears in TIB_Currency, but if I click to 'enter' in
TIB_Currency, the - signal dissapears! When I exit the TIB_Currency
the - signal appears again!
After your message I set currency property to true, same behavior.
[]s
Andrei
2010/12/8 Helen Borrie <helebor@...>:
> At 02:28 AM 9/12/2010, you wrote:
>>Anyone?
>>
>>2010/12/7 Andrei Luís <compuvale.software@...>:
>>> Hello,
>>>
>>> I'm having problem when I try to enter a negative value in IB_Currency
>>> that is between -0.01 and -0.99, when I press the 0 (zero) key, the
>>> minus operator disapear!??? This happens only with values in this
>>> range, with values -1.00 and lower there is no problem.
>
> I wondered what you were talking about here:
>
>>If I use an > IB_Edit the problem don't occurr. In IB_Query, displayformat is
>>> ###,###,##0.00 for this field, in IB_Currency I leave displayformat blank.
>
> DisplayFormat for IB_Datasets is set in the dataset object, not the control, so the same DisplayFormat should work for the field in either control.
>
> Also, do you have the ColumnAttributes "Currency" attribute set for that field?
>
> HB
>
>
>
> ------------------------------------
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
> keyword-searchable FAQ, community code contributions and more ! Yahoo! Groups Links
>
>
>
>