Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5566 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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.

Posted

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.

Posted (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 by Guest

This topic is 5566 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.