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

Recommended Posts

Posted

I have searched the manual and here for help with this and strangely, I found nothing. I tried several approaches to format the field within the script and the results.

I have a serial number produced with a Loop and want the result if < 10 to be preceded by a zero for sorting purposes. (I believe FM, like spreadsheets, requires a zero before single digits.) The script, i.e., the bcooney/Daniele script, follows below.

Thanks,

Leonard

Picture_6.jpg

Posted (edited)

If the field is a pure number, then a 0 is not needed to sort. However, if you have text characters in the field too (can't tell from the description), then the field will need to be Text, not Number.

Lee

Is this a duplicate post?

Edited by Guest
Posted

Lee wrote: "If the field is a pure number..."

I think Lee meant that the field definition needs to be set to number, rather than text. Text fields get sorted alphabetically (1, 10, 2, 20 etc) whereas number fields sort numerically (1, 2, 10, 20 etc).

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