Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printing leading zeroes
#6
Thumbs Up 
(03-29-2023, 07:51 AM)mdijkens Wrote: Almost the same as what you posted:
Code: (Select All)
c$ = Right$("0000" + Ltrim$(Str$((n)), 4)

Yep! Once again exactly how I would do it Smile

And if used allot, generalize by making a function that does space or 0 or any other character, n times something like Steve has shown with a Pad$ function.
b = b + ...
Reply


Messages In This Thread
Printing leading zeroes - by bert22306 - 03-29-2023, 04:34 AM
RE: Printing leading zeroes - by mnrvovrfc - 03-29-2023, 05:10 AM
RE: Printing leading zeroes - by mdijkens - 03-29-2023, 07:51 AM
RE: Printing leading zeroes - by bplus - 03-29-2023, 01:39 PM
RE: Printing leading zeroes - by SMcNeill - 03-29-2023, 08:00 AM
RE: Printing leading zeroes - by bert22306 - 03-29-2023, 11:39 AM
RE: Printing leading zeroes - by bert22306 - 03-29-2023, 08:16 PM
RE: Printing leading zeroes - by mdijkens - 03-30-2023, 07:22 AM
RE: Printing leading zeroes - by MrCreemy - 04-23-2023, 07:15 PM



Users browsing this thread: 2 Guest(s)