nikarc Posted September 24, 2003 Posted September 24, 2003 How would I do the following (if possible): I have a text field foo with a string of numbers that are implicitly grouped in chunks of 12 characters. I would like to construct a multi-line key field from this data. For example: --- 123456789012123456789012... --- becomes --- 123456789012 123456789012 ... --- Can I do this with a calc field? If so, how? I'm stumped..
Lee Smith Posted September 24, 2003 Posted September 24, 2003 I am not sure I fully understand what you are wanting, but here is a calculation that may help get you started. Left(Foo, 12) & "
nikarc Posted September 24, 2003 Author Posted September 24, 2003 Thanks for the reply. My text field can contain an arbitrary amount of grouped "chunks" - only the amount of characters per chunk is fixed (at 12). I'm not sure I can use a calc field unless I pick a sufficiently large max chunks number and have an insanely long calc field definition..
Lee Smith Posted September 24, 2003 Posted September 24, 2003 Define as many "Chunks" of size 12s that you need, just keep adding to the end of the calculation like this. Left(Foo, 12) & "
Vaughan Posted September 25, 2003 Posted September 25, 2003 A looping script could process the field completely. Be aware that FMP has a 64k limit on text fields.
nikarc Posted September 25, 2003 Author Posted September 25, 2003 I believe that a script will work better. I'm working on records of text data that should never (individually) be bigger than 64k, and I'm only working with a subset of that record's data.
Recommended Posts
This topic is 7800 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