You could try something like...
<CFSCRIPT>
if (Len(Ref) LT 5)
{
Ref = NumberFormat(Ref, "9999999999900000.00");
}
<CFSCRIPT>
Or something like that ?
HTH
Mikey
-----Original Message-----
From: Ryan Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 2, 2003 12:21
To: CF-Talk
Subject: Re: Cfscript help
Brackets were wrong - thanks, but its still times out!
Any other thoughts?
ryan
On 2/1/03 12:12, "Mike Townend" <[EMAIL PROTECTED]> wrote:
> Could be the brackets... Try...
>
> <cfscript>
> while (len(#ref#) LT 5)
> {
> insert('0','#ref#',0);
> }
> </cfscript>
>
> -----Original Message-----
> From: Ryan Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 2, 2003 12:07
> To: CF-Talk
> Subject: Cfscript help
>
>
> Hey
>
> Why does the following cfscript take absolutely AGES to load?
>
> <cfscript>
> while (len(#ref# LT 5)) { insert('0','#ref#',0); } </cfscript>
>
> Ryan
>
> ** posted to the cf-linux list by accident -- oops!
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm