> If you're on CF9 things may a little different in that you may not need to
> explicitly var
> scope,
If you are on CF9, use the local scope as it is inherently "varred":
<cfset local.returnArray = []>
...
<cfset local.thisContact = createObject('component',
'Contact').init(...insert init info here...)>
<cfset ArrayAppend(local.returnArray, local.thisContact)>
If you are not on CF9, I could recommend still getting in the habit of
pretending there is a local scope and putting <cfset var local = {}> at
the top of your method. Just make sure you reference all of your
"local" variables as local.varName and this will ensure that multiple
people hitting that code at the exact same time will all have their own
special versions of each of those variables and no one will be
overwriting another.
~Brad
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329654
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4