I have a variable (ProductID which currently looks like this
5426
I need to add leading zeros to this field to make it up to 18 chars long...so it looks like this
000000000000005426
currently have the length of the string
'read/loop array
For r = 1 To rcount
ProductID = arrProductBudget(r, 1)
ProductDesc = arrProductBudget(r, 2)
PriceInZpic = arrProductBudget(r, 3)
Length = 18
test = (Length - Len(ProductID))
but need to know how to add the correct leading zeros
5426
I need to add leading zeros to this field to make it up to 18 chars long...so it looks like this
000000000000005426
currently have the length of the string
'read/loop array
For r = 1 To rcount
ProductID = arrProductBudget(r, 1)
ProductDesc = arrProductBudget(r, 2)
PriceInZpic = arrProductBudget(r, 3)
Length = 18
test = (Length - Len(ProductID))
but need to know how to add the correct leading zeros