Good day.... I am trying to pad zeroes to a 5 digit ID number..

instead of 123, 4356, 78995, I would like to see 00123, 04356, 78995

Below doesn't seem to work:

My_String = SPrintF("%5d", xvalue)

or

MyString = String$((5 - Len (str$(xvalue))), "0") & str$(xvalue)

Thanks in advance,,,,,