Change the format of a numeric DataField in runtime.

forum.td.development (2005-2010)
NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Change the format of a numeric DataField in runtime.

Post by NewsgroupServer » 26 Mar 2010, 12:13

 Posted by:  Francisco Ramon Soler 

I would like to change the format of a numeric DataField runtime. Eg in the
same program a client has the price with 2 decimals and the other with 3
decimals.

Thanks in advance.

Me gustaria cambiar el formato de un datafield numerico en tiempo de
ejecucion. Ej. en un mismo programa un cliente tiene el precio con 2
decimales y otro con 3 decimales.

Gracias por adelantado.

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Change the format of a numeric DataField in runtime.

Post by NewsgroupServer » 26 Mar 2010, 15:46

 Posted by:  Rainer Ebert 

Hi,

we use "SalFmtSetPicture()" for that purpose.

Regards,
Rainer

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Change the format of a numeric DataField in runtime.

Post by NewsgroupServer » 29 Mar 2010, 11:39

 Posted by:  Francisco Ramon Soler 

It's a great response, it works perfectly and has really helped me.

Thank you very much for your reply so fast.

Return to “td.development”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests