Why im I getting the following error then????
An error occurred while evaluating the expression: isdefined(myarray) Error near line 12, column 6. ---------------------------------------------------------------------------- ---- Parameter 1 of function IsDefined must be a basic value, i.e., a string, number, logical, or date/time value ----- Original Message ----- From: "Pascal Peters" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 12:47 PM Subject: RE: How do I check if a Array() exists?? > You can use IsDefined() > You could also do <cfparam name="myarray" default="#ArrayNew(1)#"> > > > -----Original Message----- > From: Wajid Hussain [mailto:[EMAIL PROTECTED]] > Sent: woensdag 10 april 2002 13:43 > To: CF-Talk > Subject: How do I check if a Array() exists?? > > > Hi Folks, > > > > I want to check if an array exists and if it doesn't exist, I would like to create it. (but only if it don't exist!) > > > > I know I can't use the IsArray() func because the Array would need to exist before testing its type etc. I also can't use the IsDefined() func because its an array and not a simple value. > > > > Does anybody know how I would accomplish this? Many thanks. > > > > WAJ. > > > > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

