04-06-2016 08:41 AM
Hello,
how can i convert an integer to a string?
StationGlobals.MyInteger is 1.
Using Str(StationGlobals.MyInteger) should convert it to "01" instead of only 1.
How can this be done?
Thx
Solved! Go to Solution.
04-06-2016 08:47 AM
Hi OnlyOne,
You can achieve this functionality by right-clicking on StationGlobals.MyInteger, selecting Numeric Format, change the type to Integer, and increasing the Minimum Number of Digits to 2.
04-06-2016 08:52 AM
You mean in the ExpressionBrowser?
Can you post a screenshot?
Thx
04-06-2016 09:30 AM
04-06-2016 09:34 AM
Thanks for the screenshot.
I took the format string "%.2i" into my str() function and have now there also 2 digits.