When you say that it's not working, exactly what are you seeing, and how
is it different than what you're expecting?
If you want to use the result of another rule instead of the field
value, you can just change the first line to something like this:
var input = Rule("addressLCRULE ");
Or, you can just set the string you're working with to lower-case
directly, without requiring a second rule, like so:
var input = ToLower(Field("Address"));
The font in the Text Editor shouldn't matter. This rule should work
with any font.
Remember to check the "Treat returned strings as tagged values" box on
the Rule Editor dialog. Also, you may need to replace spaces in the
returned value with entities. Try this and see what you get:
var input = ToLower(Field("Address"));
var result = "";
for (var i = 0; i < input.length; i++)
{
if (input[i] == " ")
{
result += " ";
continue;
}
if ("1234567890".indexOf(input[i]) != -1)
result += "<f name=MetaPlusBookRoman>";
else
result += "<f name=MetaPlusBookCaps>";
result += input[i];
}
return result;
Dan
--
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
--