06-11-2015 10:46 AM
Hi,
I want to compare strings (format FLxxx where x is a number). I am getting the xxx number from some other part of my program. now the number can be a 2 digit or a 3 digit one. If it's a two digit number, I want to add a 0 before the number and then append it to FL. And if it's a 3 digit number I just want to return the same number. How can I do this operation?
Thank you.
06-11-2015 10:48 AM
Use the format into string function with FL%03d as the format specifier - this will take a number in, pad it to 3 characters with 0's and add the FL at the start.