Page 1 of 1

°C/F and mm/inch conversion

Posted: Wed Aug 22, 2012 12:49 am
by matteo_b
Hi,

I have to create an application that will be used in different parts of the world. Therefore, numerical values must be displayed with different units: in ° C and F, mm and inch for example.
For the conversion of the values, no problem; but I also have to change the limits of these variables dynamically.
Is there a solution to do this?

Thanks in advance for your help

Re: °C/F and mm/inch conversion

Posted: Wed Aug 22, 2012 10:09 am
by mark.monroe
You can use the "AnalogNumeric1_InputValueChanged" event in the scripting section of your screen. Then have an if statement that defines your limits based on a "units" tag.

If the user inputs an incorrect value, you can use a "Globals.Screen1.Show()" function to pop up a window that tells them the error they made.

The InputValueChanged event only fires when the user inputs a new value into the AnalogNumeric box.