08-09-2013 04:22 AM
Hi,
I encounter a typical problem that consists in formatting all one digit numbers 1 2 3 4 5 6 7 8 9 to 01 02 03 04 05 06 07 08 09.
I have read str( func without finding good format option.
What is the easiest way to do this job ?
Thank you
Solved! Go to Solution.
08-09-2013 06:10 AM
08-09-2013 06:56 AM
From Date function, I got 1 or 2 or 3 or 4 or 5 .....number that I convert to string with str( func.
How can I format 1 or 2 or 3 to 01 or 02 etc.....
08-09-2013 07:29 AM
08-09-2013 07:33 AM
Great Thank you !
08-09-2013 10:12 AM
Here's an even simpler way:
Locals.string = Str(Locals.number, "%.2i")
08-09-2013 02:46 PM
08-12-2013 09:02 AM
To get a better idea of the formats that TestStand supports, you can use the numeric format dialog (on a number variable). The dialog will tell you what the format string is for the options which you select.
-Doug