Jump to content
Sign in to follow this  
bonngo

Need A Leading Zero

Recommended Posts

I need to be able to add a leading zero to a number ONLY if the number is a single digit ex. 1 needs to be 01 but 12 can stay as is. Any ideas out there?

Share this post


Link to post
Share on other sites

Will this work? The SerialIncrement function is targeted at TEXT fields, not number fields.

Share this post


Link to post
Share on other sites

It will work, provided the result is set to type Text (numbers do not have leading zeros).

---

I should add that this will also work with a Number result (provided it's not formatted as Decimal), since Filemaker is pretty tolerant regarding what can be entered into a Number field. But eventually, if there are leading zeros then the real type is Text, and it would be better to stick to that.

Edited by Guest

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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