RE: array - structure question

2002-01-11 Thread Raymond Camden
Others have sent in suggestions, but I'd like to show another way of doing it as well... with UDFs! I have an article coming out for CFDJ that discusses this concept, but the idea is simple. You can use a UDF to quickly create structures and, if you know what you are doing, safely append to the

RE: array - structure question

2002-01-11 Thread Owens, Howard
: RE: array - structure question Others have sent in suggestions, but I'd like to show another way of doing it as well... with UDFs! I have an article coming out for CFDJ that discusses this concept, but the idea is simple. You can use a UDF to quickly create structures and, if you know what you

RE: array - structure question

2002-01-10 Thread Brendan Avery
Structs are like Pointers/Linked-Lists and reference-based data-structures in other programming languages. If you don't know what I'm talking abooot, thats okay. Just remember this simple example: cfset x=StructNew() cfset y=x y is now x and x is now y for all intents and purposes. any

Re: array - structure question

2002-01-10 Thread Birgit Pauli-Haack
this may be looking a little awkard but it works... try item1 = structNew(); item1.department = 'Department 1; item1.name = 'Bill Jones; item1.email = '[EMAIL PROTECTED]; additem = arrayAppend(request.contact, item1); item2 = StructNew(); item2.department = 'Department 2; item2.name = 'Joe