I forgot my return statement at the end. Here is new and improved code! :)
JS Globals:
int counterText = 0 ;
int threshold = 100 ; // or 25, or anyother number
JS Rule:
while ( counterText <= threshold ) {
/* Some code could be happening here
*/
return FormatNumber("000", counterText) ;
/* incrementing our counter, I don't know
* that you want this in the return
* method above???
*/
counterText ++ ;
}
/* Once we reach our threshold, run the stuff below:
*/
counterText = 0 ;
return ; // All Done!
-----Original Message-----
From: Craig Daters [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 05, 2007 9:37 AM
To: FusionPro Users Forum
Subject: [fusionpro] RE: Reset a counter after 100
Are you looking for something like:
JS Globals:
int counterText = 0 ;
int threshold = 100 ; // or 25, or anyother number
JS Rule:
while ( counterText <= threshold ) {
/* Some code could be happening here */
return FormatNumber("000", counterText) ;
counterText ++ ; // incrementing our counter, don't know if
you want this in the method above???
}
/* Once we reach our threshold, run the stuff below: */
counterText = 0 ;
// All Done!
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 05, 2007 7:54 AM
To: FusionPro Users Forum
Subject: [fusionpro] Reset a counter after 100
How do I reset this counter to 0 after it reaches 100 or switches to the
next output file? What if there are only 25? or 125? Can I return 1 with
100 and 1 with 25 and reset the counter?
Any help would be greatly appreciated.
Jim
JS Globals
var counterText = 1;
JS rule
return FormatNumber("000", counterText++);
--
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
--
--
Please note: It is the policy of West Press that all e-mail sent to and from
any @westpress.com address may be recorded and monitored. Unless it is West
Press related business, please do not send any material of a private,
personal, or confidential nature to this or any @westpress.com e-mail
address.
This message has been scanned for UCE (spam), viruses, and dangerous
content, and is believed to be clean
--
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
--
--
Please note: It is the policy of West Press that all e-mail
sent to and from any @westpress.com address may be recorded
and monitored. Unless it is West Press related business,
please do not send any material of a private, personal,
or confidential nature to this or any @westpress.com
e-mail address.
This message has been scanned for UCE (spam), viruses,
and dangerous content, and is believed to be clean
--
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
--