leading zeros

Сonversation on different topics
Post Reply
SERGIOCRUZ2021
Posts: 2
Joined: Mon Jan 30, 2023 11:22 pm

leading zeros

Post by SERGIOCRUZ2021 »

Hello good, I want to know if someone can help me? I want the invoice to have 8 digits, that is, to fill it with zeros to the left. example: 00000001
Attachments
12.png
12.png (393.06 KiB) Viewed 218 times
Kirill Klimenkov

Re: leading zeros

Post by Kirill Klimenkov »

Hello.

You could use the Format function:

Code: Select all

TICKET: {Format("{0:0000000#}", venta.NO_REFEREN)}
Thank you.
SERGIOCRUZ2021
Posts: 2
Joined: Mon Jan 30, 2023 11:22 pm

Re: leading zeros

Post by SERGIOCRUZ2021 »

gracias
Lech Kulikowski
Posts: 5413
Joined: Tue Mar 20, 2018 5:34 am

Re: leading zeros

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply