Página 1 de 1

Problem with picture

Publicado: Mié May 27, 2009 6:54 pm
por Giuseppe Bogetti
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

Problem with picture

Publicado: Jue May 28, 2009 12:07 pm
por ignacio
Giuseppe,
Here is woking fine. Sample attached.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:s180xugjyzu1$[email=.111zh13zd99d.dlg@40tude.net...].111zh13zd99d.dlg@40tude.net...[/email]
> 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
>


Attached files test-1.1-1-1.zip (2.5 KB)Â

Problem with picture

Publicado: Jue May 28, 2009 12:07 pm
por ignacio
Giuseppe,
Here is woking fine. Sample attached.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:s180xugjyzu1$[email=.111zh13zd99d.dlg@40tude.net...].111zh13zd99d.dlg@40tude.net...[/email]
> 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
>


Attached files test-1.1-1-1.zip (2.5 KB)Â

Problem with picture

Publicado: Jue May 28, 2009 3:48 pm
por Giuseppe Bogetti
Il Thu, 28 May 2009 12:07:46 +0200, Ignacio Ortiz de Zúñiga ha scritto:
Ignacio,
> Giuseppe,
>
> Here is woking fine. Sample attached.
>
> Regards,
Sorry, my mistake. Everythings OK.
--
Regards,
Giuseppe

Problem with picture

Publicado: Jue May 28, 2009 3:48 pm
por Giuseppe Bogetti
Il Thu, 28 May 2009 12:07:46 +0200, Ignacio Ortiz de Zúñiga ha scritto:
Ignacio,
> Giuseppe,
>
> Here is woking fine. Sample attached.
>
> Regards,
Sorry, my mistake. Everythings OK.
--
Regards,
Giuseppe