Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6692 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

How do I pad a number to ensure that it is always atleast 4 digits?

The original DOCID is in the format of 0000. There is a field NumPages.

So if on record 1, the DOCID = 0005, and the Numpages is 6, i have a script which basically runs and creates records with

0005 - 1

0006 - 2

0007 - 3

0008 - 4

0009 - 5

0010 - 6

but in reality it creates it as

0005 - 1

6 - 2

7 - 3

8 - 4

9 - 5

10 - 6

See the attached for a better explanation.

I was thinking of using the count characters but I think I'm going about that the wrong way.

login and password are both "admin"

TIA

example.zip

This topic is 6692 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.