Setting the text format to a float in a layout

Find and share HowTos to various installations / configurations!
Search

Post Reply
1 post • Page 1 of 1
GerrieF
Posts: 11
Joined: Tue Sep 29, 2020 1:57 am

Setting the text format to a float in a layout

Post by GerrieF »

Good day

For some reason when I am setting the format of a text field (value read from a DP as a float), to the format of the DP, the text box size increases.
Example:
I am setting the value and the format to my text field.
Image

When pressing the button above this is the code:

Code: Select all

main(mapping event)
{
  string DP = dpSubStr(dollarP_DP+"."+dollarP_DPE, DPSUB_SYS_DP_EL);
  string sFormat = dpGetFormat(DP);

   setValue("text_indicator", "format", sFormat);
   DebugN(DP,sFormat);

}

Post Reply
1 post • Page 1 of 1