Since you are refering to one variable (newRanID1)  twice in your final
expression it will have to be stored in a temp variable which precludes
having all the code in one line, unless you are using CF5 and then you can
write a udf for it.

----- Original Message -----
From: "BT" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 5:53 PM
Subject: Function all together?


>
>
>
>
> Anyone know how to do this is one line?
>
>
>
>  <cfset newRanID1 = #RandRange(1,1000000)#>
>  <cfset newRanID2 = #RandRange(1,1000000)#>
>  <cfset NewRandID = '#newRanID1##newRanID2##newRanID1#'>
>  <cfset NewRandID = #left(newrandid,8)#>
>
>
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to