Richard,

What you need to do is to split the output data for each price into 3 sections: 
1) The dollar sign, 2) The dollar amount (with or without the decimal point), 
and 3) The cents amount.

Then use the tag <superscript> and </superscript> to turn on and off the 
superscripting feature using a text rule. I used this within a function (inside 
JavaScript Globals) so I could use this feature on multiple price fields. This 
function assumes that the dollar-sign is not part of the data, and that you do 
not want to include the decimal point. Add another variable like "var sign" if 
the dollar-sign is part of your data string.

function priceString(inStr)  {
var outStr = "";
if (Trim(inStr) != "") {
   var i = inStr.lastIndexOf(".");        //decimal point location
   var dollars = Mid(inStr, 1, i);        //do not include the decimal point
// var dollars = Mid(inStr, 1, i+1);    //include the decimal point
   var cents = Mid(inStr, i+2, (inStr.length - i));
   outStr += '<superscript>$</superscript>'  + dollars + '<superscript>' + 
cents;
   }
return outStr;
}

Then for each price that I needed, I created a text rule with tagged-text 
checked...

return priceString(Field("priceA"));

My client actually wanted the dollar sign to be a different size than the cents 
portion of this, but I had to convince them otherwise. As of the time I created 
this function, FusionPro could not do two different settings for the 
superscript on the same line. That was a few versions ago, and things may have 
changed since then.

Good Luck,

---
David A. Sweet
Web Designer/Graphic Designer
HKM Direct Market Communications
A DirectConnectGroup Company
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.13.30/1025 - Release Date: 9/23/2007 
1:53 PM
 

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Calling all FP Web Users!

Do you have a question or lots of knowledge to share about FusionPro Web?

If so, join our Printable Web to Print Users' Forum today!

Send email to [EMAIL PROTECTED] to find out how!
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-


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