I am trying to format a result so that it contains leading zeroes, and save that to a text variable. If:
Red = 3122:Kount=0
Unread= Red - Kount
Unread$ = using$("#,###,###",Unread)
Print Unread$;" Not Read"
Acutal Result:
3,122 Not Read
Preferred Result:
0,003,122 Not Read
Short of checking the length of Unread$ and then appending the correct number of zeroes in the front, is there a way to force the zeroes to appear using USING$ ? It shows up as nothing (i.e., correct according to format), which is correct functionally, but I would really appreciate the zeroes being padded in the front.
Thank you.
Robert
Red = 3122:Kount=0
Unread= Red - Kount
Unread$ = using$("#,###,###",Unread)
Print Unread$;" Not Read"
Acutal Result:
3,122 Not Read
Preferred Result:
0,003,122 Not Read
Short of checking the length of Unread$ and then appending the correct number of zeroes in the front, is there a way to force the zeroes to appear using USING$ ? It shows up as nothing (i.e., correct according to format), which is correct functionally, but I would really appreciate the zeroes being padded in the front.
Thank you.
Robert
Comment