House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Cfscript help

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hey
Ryan Mitchell
01/02/03 07:10 A
Could be the brackets... Try...
Mike Townend
01/02/03 07:15 A
> > ref = insert('0',ref,0);
Adam Reynolds
01/02/03 07:42 A
You could try something like...
Mike Townend
01/02/03 07:32 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ryan Mitchell
01/02/2003 07:10 AM

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!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Townend
01/02/2003 07:15 AM

Could be the brackets... Try... <cfscript> while (len(#ref#) LT 5) {   insert('0','#ref#',0); } </cfscript> 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!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ryan Mitchell
01/02/2003 07:23 AM

Brackets were wrong - thanks, but its still times out! Any other thoughts? ryan On 2/1/03 12:12, "Mike Townend" <mike@cfnews.co.uk> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Adam Reynolds
01/02/2003 07:29 AM

Have you considered that ref does not actually get bigger? should it not be ref = insert('0','#ref#',0); ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ryan Mitchell
01/02/2003 07:37 AM

Brilliant this worked... thanks, didn¹t realise you needed to assign the insert, I thought it inserted it without! Oh well! thanks again! Ryan On 2/1/03 12:25, "Adam Reynolds" <adam@craze.co.uk> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Townend
01/02/2003 07:32 AM

You could try something like... <CFSCRIPT>   if (Len(Ref) LT 5)   {     Ref = NumberFormat(Ref, "9999999999900000.00");   } <CFSCRIPT> Or something like that ? HTH Mikey Brackets were wrong - thanks, but its still times out! Any other thoughts? ryan On 2/1/03 12:12, "Mike Townend" <mike@cfnews.co.uk> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Taz
01/02/2003 07:33 AM

insert() returns a string, but you're not setting ref as the new string. Therefore you get an infinite loop BTW, you should ditch the use of ##s Taz > Brackets were wrong - thanks, but its still times out! > Any other thoughts? > ryan


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 25, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference