I am trying to format a price that depends on the price that the User
enters. The price will return a $ or cents sign and is formatted with
superscript. But, I don't know how to write the superscript code.
Can anyone tell me what I need to do to make this happen?
Here's what I've got so far:
PriceVariable=Field("Price")
/////////
PriceVariable=PriceVariable.replace("$", "")
PriceVariable=PriceVariable.replace("¢", "")
if (PriceVariable < 1)
{
return PriceVariable=PriceVariable.replace(".", "")+'¢';
}
else if (PriceVariable >= 1)
{
return '$'+PriceVariable;
}
else return ""
Thanks so much!!
--
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
--
Don't miss The Printable Technologies 2007 User Group Conference at the Monte
Carlo Resort and Casino in Las Vegas, March 14 through March 16, 2007.
For more details or to register, go to
http://www.traveltrust.com/Forms/pt_signup_2007-3.html
--
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
--