bonngo Posted February 4, 2009 Share Posted February 4, 2009 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? Link to comment Share on other sites More sharing options...
comment Posted February 4, 2009 Share Posted February 4, 2009 Try: SerialIncrement ( "00" ; Number ) Link to comment Share on other sites More sharing options...
IdealData Posted February 4, 2009 Share Posted February 4, 2009 Will this work? The SerialIncrement function is targeted at TEXT fields, not number fields. Link to comment Share on other sites More sharing options...
comment Posted February 4, 2009 Share Posted February 4, 2009 (edited) 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 February 4, 2009 by Guest Link to comment Share on other sites More sharing options...
bonngo Posted February 4, 2009 Author Share Posted February 4, 2009 Perfect! Thank you so much! Link to comment Share on other sites More sharing options...
Julian L Posted February 4, 2009 Share Posted February 4, 2009 I know this has been solved already, but here is another way to accomplish this: Right ( "00" & Number ; 2 ) Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5560 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 accountSign in
Already have an account? Sign in here.
Sign In Now