Good follow up to the questions.  

Item #3 was a little surprise to me.  In fact, what it returns as the length
is the number of elements defined (regardless of whether they contain any
data).  I created an array that had data in elements 1,2,4,6 & 9 (elements
3,5,7 & 8 were empty) and it retuned a length of 9.  I then did a resize on
the array making 13 the minimum size and it returned a length of 13 (which
is where I think the question started).

As the presentation pointed out - you learn something every day.  I was
certainly under the impression that if I created 13 elements but only
populated 9 elements it would return 9 as the length.  I stand corrected
from my statement last night.

Would be interested in seeing an example of using and array in a server
variable.  Can not imagin a practical example of this one.  Also was not
aware of the change in CF 5.0 on creating a structure.

Dave Cahall
Vice President, Professional Services
Digitaris Technologies, Inc.
Office: 972.690.4131 ext 116
Mobil: 214.914.9947


-----Original Message-----
From: Milo D. Strawn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 13, 2001 11:44 AM
To: [EMAIL PROTECTED]
Subject: Questions from last night's meeting.


Chris Elmore offered these answers to some questions that were raised at 
last night's presentation about structures and arrays.

>Here are the answers for the questions last night:
>
>    * Arrays in server scope? Yes
>    * listToArray - will it wipe out the existing array or overwrite only 
> the needed/used cells? Wipeout
>    * ArrayLen for an array with cells [1] and [9] defined? 9
>    * ListToArray - can it have multiple delimiters? Yes
>    * ArrayResize(array, size) - does it initialize the cells? NO.
>    * ArrayResize(array, size) - does it initialize skipped (undefined see 
> #3) cells? No
>    * will isArray(array, size greater than 3) work? No, the number must 
> be b/w 1 and 3.
>    * is structNew() required to define a structure? Yes. CF 5.0 does not 
> dynamically set stSomeStruct.somekey to be "stSomeStruct" as a structure 
> with somekey as a key. Some structures are defined by default (cookie, 
> form,cgi, etc.)
>    * Does structKeyExists evaluate the same as isDefined on structures?
Yes



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to