This reminds me of something that my boss and I argued about... I said that 
query recordsets and forms are structures, and he said that it's not the same 
kind of structure as a struct(), that the structure function is better because 
it's indexed and that the query and forms are not "real structures". Which is 
true?
 

>> There are generally two reasons for something like that:
>> 
>> 1) The code is very old - we've still got code from CF 2.0 
>> around and it's pretty damn nasty.  ;^) A lot of the stuff 
>> we take for granted (structs, scopes as structs, even arrays)
>> didn't exist in earlier versions of the language.
>
>In this case, I don't think that's an excuse, since CF has had
>FORM.FIELDNAMES since CF 2.0, at least. That's what it was there for - to
>let you get a list of the form fields so you could process them. Now, of
>course, we have the Form scope exposed as a structure, which is nicer, but
>the required functionality for generalized form handlers has been there all
>the time.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207593
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to