Using Rept to pad zeroes

I was creating a PeopleCode script to populate test persons in my database. I needed the persons to have IDs that would be padded with 0s where necessary. For example:

Solution: 1. Determine how many people you are creating (eg. 100). 2. Find the number of digits of that number (eg. 100 has 3 digits) 3. Subtract that from the number of the person that you’re currently trying to create an id for (eg.…

Continue reading