> BTW if you've been using form scope in CF5 you're already
> using a structure. It can be useful to start thinking of this and
> other scopes (not all of them are structures) as structures.
> You can then do clever things like loop thru them ( <cfloop
> collection="#Form#"...>) or clear them (<cfset StructClear(Form)>).

I believe the variables scope is the only one left that's not a structure in
CF5 ... I suspect with intent on the part of the Allaire / MM developers...
In previous versions several other scopes were not structures, such as URL
and at some point even FORM (Ever wonder why you have a FieldNames variable
in your form data?) ... by the time CF5 (or I think even 4.5) was released
all of URL, Form, Request, Server, Application, Session and Attributes
scopes were exposed as structures.

Ever needed to delete (not set to "") a single variable from a persistent
scope? In CF4.5 and later it became really easy (I won't get into locking
here), <cfset temp = StructDelete(Session,"MySessionVariableName")> ...
Useful if you're caching certain information in a persistent scope and then
need to delete the cache of just one item so that the application will renew
/ refresh based on IsDefined() logic (which I avoid if possible, but in some
cases it's desireable)...

Isaac

www.turnkey.to
954-776-0046

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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