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 6077 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

This is probably an easy one, but is giving me fits. I can get it done using a long series of subs etc., but there has to be an easier cleaner way of doing it.

Floor(Random*587)+1 which of course will produce anumber like 45,4. and need it to show 045,004. Need it to always pad it with 0's.

Posted

Floor(Random*587)+1 which of course will produce anumber like 45,4

Huh? Floor(Random*587)+1 will of course ALWAYS return a single integer number. I am not sure what the comma in your example is representing, but your formula will NEVER return a result like that.

To pad a number with leading zeros, you can use:

SerialIncrement ( "000000" ; number )

The result should be Text.

Posted

Comment thanks, sorry for the confusion was working with no sleep. The numbers were just meant be be separate examples, not what would be produced together, my bad for not making it clearer.

SerialIncrement ( "000" ; Floor(Random*587)+1 ) works perfect for what I am trying to accomplish.

Thank you again.

This topic is 6077 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.