I can't seem to get either on of these to work..a counter that counts to
100 and then resets to 0. Also if counter hits 100 return 100, and then
if it is less than 100 return count value then reset to 0. Should I
return a Modulo "%" of 100?
//JS Globals:
//var counterText = 0 ;
//var threshold = 100 ;
while ( counterText <= threshold )
{
counterText ++ ;
}
counterText += 1;
if ( counterText == 100 )
{
return FormatNumber ( "000", counterText += ( - "1" ) ) ;
}
if ( counterText <= 100 )
{
return FormatNumber ( "000", counterText += ( - "1" ) ) ;
}
else
{
return FormatNumber ( "000", counterText += ( - "1" ) ) ;
}
or
modulo test rule
var counterText = 0 ;
var threshold = 100 ;
if (Field("total") == 100)
{
return FormatNumber ( "000", counterText += ( - "1" ) ) ;
}
if (Field("total") <= 100)
{
return FormatNumber ( "000", counterText += ( - "1" ) ) ;
}
if (Field("total") %= 100)
{
return FormatNumber ( "000", counterText += ( - "1" ) ) ;
}
--
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
--