Ron Cates Posted June 1, 2010 Posted June 1, 2010 I have a script that exports an image file from a container. The filename is created fron a couple fields, the last of which contains short notes and in some cases there may be return characters. The filename falls apart at the returns as you may have guessed. I was hoping someone could tell me how to replace returns in a field with another character? Thanks
Ron Cates Posted June 2, 2010 Author Posted June 2, 2010 Is there a script step that will accomplish the same?
RodSierra Posted June 2, 2010 Posted June 2, 2010 More than one, but your probably best starting with Set Field, place the above substitute function in the calculated result.
Ron Cates Posted June 2, 2010 Author Posted June 2, 2010 My preference would be to set a variable with the contents of the field, then parse out the "¶" in the variable before tacking it onto the file name.
RodSierra Posted June 2, 2010 Posted June 2, 2010 (edited) My preference would be to set a variable with the contents of the field, then parse out the "¶" in the variable before tacking it onto the file name. ???Why the redundancy of messing with a variable, and what do you mean by tacking? Never mind, misread, thought you were setting field, not an export parameter. Edited June 2, 2010 by Guest
Ron Cates Posted June 2, 2010 Author Posted June 2, 2010 The field in question is a notes field. I would like to keep the format of the notes field as is including the "¶"s.
Raybaudi Posted June 2, 2010 Posted June 2, 2010 My preference would be to set a variable with the contents of the field, then parse out the "¶" in the variable before tacking it onto the file name. Set Variable [ $var ; Value: Substitute ( LastField ; ¶ ; "another character" ) ]
Ron Cates Posted June 3, 2010 Author Posted June 3, 2010 Just what I needed. Thank you. It is working perfectly.
Recommended Posts
This topic is 5288 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