Rod Haden Posted August 19, 2009 Posted August 19, 2009 I want to put a carriage return into a text field using set field, like this: $currentRecord->setField('tActivity_Log', $text . "Carriage Return"); What do I use in place of the "Carriage Return"? Thanks!
JesseSFR Posted August 19, 2009 Posted August 19, 2009 (edited) $text . "¶" or $test . "n" Edited August 19, 2009 by Guest
Rod Haden Posted August 20, 2009 Author Posted August 20, 2009 Thanks. Neither of those puts a carriage return into the Filemaker field, though.
TheTominator Posted August 20, 2009 Posted August 20, 2009 I would try putting in a vertical tab. That is ASCII 11 in decimal. FileMaker uses a vertical tab in the data it exports to text files to represent a carriage return in the text field. Perhaps this is the internal representation too.
JesseSFR Posted August 20, 2009 Posted August 20, 2009 Sorry Harden... I assumed that would work because I do something similar in ruby. Have you tried just copying and pasting a carriage return into your code. It's a little ridiculous but it may work. I think I remember having a variable defined for just this problem at one point when I was doing some php work.
Baloo Posted August 20, 2009 Posted August 20, 2009 $currentRecord->setField('tActivity_Log', $text . "nr");
Rod Haden Posted August 21, 2009 Author Posted August 21, 2009 Tried copy and paste on ALT-20. Tried "nr" No dice. I'll just use another separator instead. Thanks!
Baloo Posted August 26, 2009 Posted August 26, 2009 (edited) interesting because the code I posted worked for me with the following setup. PHP running on a LAMP server and FMSA10 running on W2K3 IIS What configuration are you using?? edited to add - Whenever text doesn't appear to function correctly I start thinking it may be an encoding issue. Try adding the following to the header of the page that generates the data you could also try $currentRecord->setField('tActivity_Log', $text . chr(13)); Edited August 26, 2009 by Guest
Recommended Posts
This topic is 5825 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