Jalz Posted July 15, 2005 Posted July 15, 2005 Hi, I have a field called numbers which contains a set of numbers in text format. 145 156 233 455 What I would like to do is add a prefix and an underscore to each of the numbers, i.e. 2_ so the data reads as follows 2_145 2_156 2_233 2_455 I thought I could use the Extend function, but I guess that really reserved for calculations. Is there any one with some advice on how I can do this? Im using FMP6 Thanks all Jalz
Lee Smith Posted July 15, 2005 Posted July 15, 2005 Are each of these numbers in different records, or is it a list as you have shown, separated by returns (spaces, tabs) Lee
Jalz Posted July 15, 2005 Author Posted July 15, 2005 Hi Lee, They are not in different records. Those values are in one record - seperated by a carriage return, in a Text field. I have 800 records with similar data in that field, so I thought there must be a calc I can apply to a new field to give me the result im looking for. Thanks
comment Posted July 15, 2005 Posted July 15, 2005 The Extend() function is for use with repeating fields. You could try something like: Let ( temp = Substitute (
Jalz Posted July 15, 2005 Author Posted July 15, 2005 Thanks Comment, That works a treat! If I wated to change 2_, to a field name, could I insert the fieldname where 2_ exists?
Lee Smith Posted July 15, 2005 Posted July 15, 2005 Short answer is Yes, this can be done. The best way to learn FileMaker is to fool around with things like this. Why don't you try to modify the calculation, and if you can't figure it out, post back. Lee
Jalz Posted July 15, 2005 Author Posted July 15, 2005 Thanks for your help Guys, Yep figured it out, on my first attempt . Dont know why i'd posted the second question....guess i thought it'd be harder before i attempted it. Dont quite understand fully Comments forumula, but I guess I need to break it down and see what each command is doing. Cheers Jalz
Recommended Posts
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