12-15-2015 08:35 AM
Hello,
i have a loop that loops 20 times (1..20) with numeric variable i.
Now i want to use this i to create a switchingpath - but here i need string "01" instead of only "1".
So i cannot use only str(i)
How can i create the prefix 0 for i 1..9?
Thanks
Solved! Go to Solution.
12-15-2015 11:30 AM
12-15-2015 03:24 PM
Hello,
The Str Function allow to use a C style format string. In your case, this may be something like that :
Str(Locals.i, "%02d")
Best regards,