Newbies JMGA Posted June 28, 2010 Newbies Posted June 28, 2010 Hello, I have been trying (unsuccessfully) to calculate a portion of an existing field into a new field in FM9 PRO. I have tried Replace, Substitute and even Trim to complete it, but since I am new to scripting I have not been able to get the desired result. I have a field that contains a part number (3M-1234; DWT-CP-3429; ACM-00-98-A) and I want the calculated result of the new field to just be the characters before the first "-" (3M; DWT; ACM). Is it possible to extract that? If so, how? Any help would be appreciated. Thanks.
comment Posted June 28, 2010 Posted June 28, 2010 Try = GetValue ( Substitute ( PartNumber ; "-" ; ¶ ) ; 1 )
Newbies JMGA Posted June 28, 2010 Author Newbies Posted June 28, 2010 That's it! It works perfectly. Thank you so much.
Recommended Posts
This topic is 5603 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