natemclain Posted September 26, 2005 Posted September 26, 2005 I have a field called Pattern::FlaskSize and the contents of the field are dimensions of a box 18x18, 21x20, etc. I need to populate CastingQuote::DimCopeL & CastingQuote::DimCopeW for the Length & Width of the box. I have this script step that doesn't seem to be working: Set Variable [$Flaskwidth; Value:LeftWords(Pattern::FlaskSize ; 1)] Set Field [CastingQuotes::DimCopeW; $FlaskWidth] But it returns the whole data string 18x18. I'm assuming that since there are no spaces between 18 x 18 that it is interpeting 18x18 as 1 word.
mr_vodka Posted September 26, 2005 Posted September 26, 2005 Hi the LetWords function does not work with the character 'x'. It will take the whole value as one word. Try: Set Variable [$Flaskwidth; Value: Left(Pattern::FlaskSize; Position ( Pattern::FlaskSize;"x" ; 1 ; 1 )] Set Variable [$Flasklength; Value: Right(Pattern::FlaskSize; Length(Pattern::FlaskSize ) - Position ( Pattern::FlaskSize;"x" ; 1 ; 1 )) Set Field [$FlaskWidth] Set Field [$Flasklength]
Recommended Posts
This topic is 6997 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