Bug or Not? Taking STRING of a string whilst making leading zeros
|
01-31-2018, 03:05 AM
Post: #14
|
|||
|
|||
RE: Bug or Not? Taking STRING of a string whilst making leading zeros
Some interesting solutions I might not have thought of myself.
Here are two functions I've been using to left- or right-justify a string. Arguments are a string to be processed, the desired length of the resulting string, and the filler character, could be anything but probably 0 or space most common. T Code: StrLJust(str,len,spacer) But looking at the ITERATE command, this can definitely be made more compact: Code: StrLJust(str,len,spacer) Thanks Carlos! Have you made benchmark comparisons between FOR loop and ITERATE? Would be curious if one is faster than the other. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)