Forum Discussion

heidi_andrew's avatar
heidi_andrew
Contributor
3 years ago
Solved

Pad field with zero

How can i take a sql result field where I am counting the number of people in the file for a trailer and left pad with zeroes? I have tried a bunch of the expressions shown in several of the answers ...
  • Aleksandar_A's avatar
    Aleksandar_A
    3 years ago

    It is because the COUNT is an integer, try with this:

    "0000000000".slice($COUNT.toString().length) + $COUNT