ssaucedo Posted August 8, 2008 Posted August 8, 2008 How can one create a carriage return in a script?
Lee Smith Posted August 8, 2008 Posted August 8, 2008 use the ¶ symbol (a.k.a. Pilcrow Sigh) in the Calculation Edit like this Field 1 & "¶" & Field 2 Be sure to enclose the ¶ in "" (quotation marks) Lee
LaRetta Posted August 8, 2008 Posted August 8, 2008 I know you know this, Lee, so it has just slipped your mind ... quotes around the pilcrow aren't required any more; haven't been since vs. 7, I think. It IS required if you have two pilcrows together though. :wink2:
ssaucedo Posted August 8, 2008 Author Posted August 8, 2008 (edited) I keep get an error message that says "an operator is expect here" tried it with and without "" Oh, I think I should clarify it is a calculation with in a script not sure if that makes a difference Edited August 8, 2008 by Guest
Lee Smith Posted August 8, 2008 Posted August 8, 2008 (edited) It sounds like you haven't used the AMPERSAND & on both sides of the ¶ If this doesn't do it, copy and past what you have. Lee Edited August 8, 2008 by Guest
ssaucedo Posted August 8, 2008 Author Posted August 8, 2008 (edited) I am using the paste option in Scriptmaker and this is what I put in the calculation field: 1&¶ &"" But when I run the script no carriage return I also tried 1¶ & 1&¶ & 1&¶ 1&"¶"& But no success Edited August 8, 2008 by Guest
Lee Smith Posted August 8, 2008 Posted August 8, 2008 (edited) I am using the paste option in Scriptmaker and this is what I put in the calculation field: 1&¶ &"" But when I run the script no carriage return what do you want to happen? The results here should be a 1, and then a blank line below it. [color:red]BTW, you should use the Set Field instead of Paste. Lee Edited August 8, 2008 by Guest
ssaucedo Posted August 8, 2008 Author Posted August 8, 2008 (edited) I am trying to cut and paste values from multiple fields into one field and when I do this it runs together and I am trying to put a break/carriage return in. also i dont understand what set field does, do you mind explaining a bit? Edited August 8, 2008 by Guest
LaRetta Posted August 8, 2008 Posted August 8, 2008 Just in case you don't have enough help (smile) ... I am using the paste option in Scriptmaker and this is what I put in the calculation field: You cannot use a calculation with the paste option. If you want several field values (text1 thru text3 for example) to be in ONE field (result), it would look like what Lee suggested using Set Field[]: Set Field [ Result ; text1 & ¶ & text2 & ¶ & text3 ] This will leave the Result field with: Text1 text2 text3 Is this what you want? But I also see other combinations you might be trying to achieve, such as prepending to Result field individually. And I have no idea why you have the space in there. As suggested and requested, you will need to provide specific information otherwise we'll play the guessing game for another week. LaRetta :wink2:
Recommended Posts
This topic is 5952 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