I'm having a hard time understanding exactly what you're trying to do. But, if 
you just want to return the Address field in lower case with the 
MetaPlusBookCaps font applied to it, then just do the following code. Make sure 
to click the 'Treat returned strings as tagged text' checkbox.

return "<f name=MetaPlusBookCaps>" + ToLower(Field("Address"));


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 2:35 PM
To: FusionPro Users Forum
Subject: [fusionpro] Help finishing up a rule/script


i have the following script.

the only problem i'm having w/ it is this:

i need my "AddressLCRULE" to be incorporated into this. it will be the
MetaPlusBookCaps. this rule will make all my letters typed in lowercase.
this is all i need to make this work. any suggestions?

//var input = "a1b2c3"; // to test
var input = Field("Address");

var result = "";
for (var i = 0; i < input.length; i++)
{
if ("1234567890".indexOf(input[i]) != -1)
result += "<f name=MetaPlusBookRoman>";
else
result += "<f name=MetaPlusBookCaps>";

result += input[i];
}

return result;

--
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
--

Reply via email to