Newbies maimew Posted July 9, 2003 Newbies Posted July 9, 2003 I am importing a field containing an eight digit number (with four preceeding zeros) from a pc database (using excel spreadsheets) and need to knock off the zeros once in filemaker. Is there a script I can use to get rid of the four preceeding zeros? My experience with scripts is limited - have never written one myself, only selected from a list. Please help. Thanks.
LaRetta Posted July 9, 2003 Posted July 9, 2003 Hi Maimew, The field should be numeric, then just apply this script: Go to Record/Request/Page [ First ] Loop Set Field [ YourNumberField, YourNumberField] Go to Record/Request/Page [ Next, Exit after last ] End Loop If you set a numeric field to itself, it will strip the leading zeros for you! If this is just a one-time thing, you can also use Records > Replace Contents. LaRetta
Lee Smith Posted July 9, 2003 Posted July 9, 2003 Or, put your cursor in the number field, go to the Menu - Records - Replace and click on the box thas says Specify. In the calculation Dialog box, select your number field and then Okay, and then the Button Replace. You can also do this with a script as pointed out by LaRetta Lee
Recommended Posts
This topic is 7811 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