Fairly heavy-handed way of accomplishing that task... it'd work for
short arrays -- I wouldn't use it for large arrays or frequent
operations. (Because it raises an exception if the element is
undefined.)

> http://www.cflib.org/udf.cfm/arraydefinedat


> On 4/4/06, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
>>
>> > Is there any way to detect or trap this condition?
>>
>> > I am creating a dynamic array that is not necessarily
>> > being filled from 1 to N.  But rather could be filled
>> > in
>> > any order such as 2, 4, 1.  When this happens, any
>> > array
>> > element below the value added is an "undefined array
>> > element".  But I can't seem to pragmatically determine
>> > that so that I can fill it.
>>
>> > Not, I just realize that a structure would probably
>> > server
>> > me better, but still for future reference can the
>> > undefined array element be captured?
>>
>> I'm not certain, but I think using ArrayResize may set a
>> default value
>> of "" for any undefined elements. I haven't tested the
>> theory, since
>> I've never needed it.


s. isaac dealey     434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236988
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to