Newbies 42n81 Posted December 13, 2006 Newbies Share Posted December 13, 2006 Hi there, I'm using the new List function, and it's really sped one of my scripts up, but to pass data between several fields, I need to work with a concatenated field. That's no problem. The problem is that when I parse the data from the concatenated field, using the MiddleWords() script step, negative numbers lose their sign. I'm sure there are plenty of ways around this, but does anyone know the best practice/easiest way? Thanks, Dave Link to comment Share on other sites More sharing options...
comment Posted December 13, 2006 Share Posted December 13, 2006 I didn't quite get what you want to do, but I am guessing you want the MiddleValues() function? Link to comment Share on other sites More sharing options...
Genx Posted December 13, 2006 Share Posted December 13, 2006 ... or GetValue if you just want to extract a single value. Link to comment Share on other sites More sharing options...
mr_vodka Posted December 13, 2006 Share Posted December 13, 2006 If I am reading your post correctly, I think you have created a calculation using a list function that gives you a list of a concat field, which you use a space as a delineator. Then you want to parse out each individual row of the list into seperate fields. If that is the case and since the "-" character is regarded as a space, you would need to use a substitute function to substitute the "-" character for something else "*" then use a another substitute for your parsing calc to get the "-" back Link to comment Share on other sites More sharing options...
Newbies 42n81 Posted December 14, 2006 Author Newbies Share Posted December 14, 2006 Yep, you get it. Sorry I wasn't more careful or explicit in my initial post. I was guessing the solution would require Subtitute, but didn't fully get why. (I thought maybe GetAsNumber() would make FMP realize the "-" was a minus sign rather than a hyphen, which you say counts as a space.) Thanks for the help, and for the recommendation. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6343 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