|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Cfscript help
HeyRyan Mitchell 01/02/03 07:10 A Could be the brackets... Try...Mike Townend 01/02/03 07:15 A Brackets were wrong - thanks, but its still times out!Ryan Mitchell 01/02/03 07:23 A Have you considered that ref does not actually get bigger?Adam Reynolds 01/02/03 07:29 A Brilliant this worked... thanks, didn¹t realise you needed to assign theRyan Mitchell 01/02/03 07:37 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 insert() returns a string, but you're not setting ref as the new string.Taz 01/02/03 07:33 A 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! 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! 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 ----- 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 ----- 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 ----- > > ref = insert('0',ref,0); is better. ----- Excess quoted text cut - see Original Post for more ----- 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 ----- 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
|
May 25, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||