All, I had the "treat all return strings as tagged text" checked on... Unchecked it and the original code worked.
Thanks for all the help. Rob ------------------------------------------------------------------------ - Rob Seaver | VP Business Development The ADAM Group | TAG Marketing and Recruiting(tm) | Home Care >> Hospice 866.232.6477 | F: 866.232.6470 | www.yourreferralconnection.com -----Original Message----- From: Ryan Blackmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 4:00 PM To: FusionPro Users Forum Subject: [fusionpro] Re: Line Breaks Rob, Not sure about your sample code but try this: if (Field("Address_2") != "") { if ((Len(Field("Address_1")) + Len(Field("Address_2")) + 2) > 30) return Field("Address_1") + "\n" + Field("Address_2"); else return Field("Address_1") + ", " + Field ("Address_2"); } else return Field("Address_1"); Ryan --------------- On Jun 13, 2007, at 1:47 PM, Rob Seaver wrote: > var Addr > if(Field("Address_1") && Field("Address_2")) > > { > > if((Len(Field("Address_1")) + Len(Field("Address_2")) + 2) > 30) > > Addr = Field("Address_1") + "\n" + > Field("Address_2") > > else > > Addr = Field("Address_1") + ", " + > Field("Address_2") > > } > > else > > Addr = Field("Address_1") > > return Addr -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com -- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
