The difference between:

<cfset var2 = var1>
and
<cfset #var2# = #var1#>

Is just a matter of style. However there is one example that I can think of
were the hashes (#) are useful:

<cfloop from="1" to="5" index="i">
        <cfset "var#i#" = i*10+5>
</cfloop>

Will set up the folling:

var1 = 15
var2 = 25
var3 = 35
var4 = 45
var5 = 55

So its handy sometimes for dynamic variables names. But if you are thinking
of doing this you probably want to consider using a structure/array instead.


Cheers

Mark


______________
Mark Stanton
Web Production
Gruden Pty Ltd
Tel: 9956 6388
Mob: 0410 458 201
Fax: 9956 8433
http://www.gruden.com


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to