That's what I figured, I guess I'll go with option number two..thanks->

Tyler

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 09, 2004 6:58 PM
To: CF-Talk
Subject: Re: Anyway to detect is an array's element is defined?

Nope, have to use CFTRY..CFCATCH to do it.  Rather a PITA, but such is life.

Two potential alternatives:

1) don't use an array, use a struct.  This works well if you don't have to
fill in the gaps.
2) prepopulate the entire array with 'blanks', and the overwrite the indexes
that have real values.  This only works if you know how large the array is
in advance.

cheers,
barneyb


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183822
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