Good News!
I was able to accomplish what I needed. The following code worked for what
I wanted, with only 2 caveats...1) the e-mail address and any title prefix
will be on a separate line, and 2) the carat ^ character will never be
used in the introduction field. We can control #1, however if #2 shows up,
then I can change the character to another (or a string of characters)
that we discover is not normally used.
This is what I came up with....
var inputField = Field("caption");
var totalLength = Len(inputField);
var eStart = inputField.indexOf("^");
var eStop = inputField.lastIndexOf("^");
var section01 = Mid(inputField, 1, (eStart));
var section02 = Trim(Mid(inputField, (eStop+2), (totalLength-eStop)));
var email = Mid(inputField, (eStart+2), (eStop-eStart-1));
return section01 + CopyfitLine("", email, "Helvetica", 12, 200, 6, false)
+ '<z newsize="12.0">' + section02;
....
I didn't want to include my start and stop characters in the final
outstring. I set the text box to a constant leading of 14 to keep line
spacing equal to the rest of the text on the page. I had to re-establish
the size by including the 'z newsize' after the email part was sent.
Without it the newsize value created by the Copyfit Rule become the new
size for the rest of the tagged text.
David A. Sweet
HKM Direct Market Comm.
--
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
--