11-11-2014 12:30 AM
Hi,
I have some number controls on my front panel. some time I need some of them keep empty, but there is "0" displayed in those controls even I delete the number. So how can I solve this problem?
Solved! Go to Solution.
11-11-2014 12:53 AM
Hi,
I think you can't make numeric control empty. Rather you can try using String control. During the run time it will stay as empty until you type number in it. Use the "Decimal string to number converter" to get it as a number.
11-11-2014 08:34 AM
In addition to Vij@y's solution you may need good error handling because you cannot prevent the user from typing characters which will not be part of a numerical value. The string control will give you the appearance you want but the price you pay is the extra work you do to qualify the output.
Lynn
11-11-2014 10:26 AM - edited 11-11-2014 10:27 AM
You can programmatically change the text color to be the same as the background color. Use an event structure to change it back to visible on mouse over so new values van be entered.
This allows you to use a numeric control. A string controls makes it much more difficult to validate the input.