Problem with picture
Publicado: Mié May 27, 2009 6:54 pm
Hi,
I've got a problem with the picture clause of a TDBMaskEdit.
In some tables of my app I have a field PRICE defined as a Numeric of
length 14 with 4 decimals. I let the user decide in the configuration
settings of the apps the number of decimals he/she wants to use in range 2
to 4. So I have a function that builds the picture clause needed to edit
the field based on that choice.
Using TDBMaskEdit however the picture clause I set is always ignored as I
always got 4 decimals. I tried to change the picture either before and
after the oDataSet/oDataField pair is assigned but to no result.
Am I doing something wrong ? Is there a workaround ?
--
Regards,
Giuseppe
I've got a problem with the picture clause of a TDBMaskEdit.
In some tables of my app I have a field PRICE defined as a Numeric of
length 14 with 4 decimals. I let the user decide in the configuration
settings of the apps the number of decimals he/she wants to use in range 2
to 4. So I have a function that builds the picture clause needed to edit
the field based on that choice.
Using TDBMaskEdit however the picture clause I set is always ignored as I
always got 4 decimals. I tried to change the picture either before and
after the oDataSet/oDataField pair is assigned but to no result.
Am I doing something wrong ? Is there a workaround ?
--
Regards,
Giuseppe