August 19, 200916 yr 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!
August 20, 200916 yr Author Thanks. Neither of those puts a carriage return into the Filemaker field, though.
August 20, 200916 yr 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.
August 20, 200916 yr 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.
August 21, 200916 yr Author Tried copy and paste on ALT-20. Tried "nr" No dice. I'll just use another separator instead. Thanks!
August 26, 200916 yr 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, 200916 yr by Guest
Create an account or sign in to comment