I have the following problem, I want to find out whatever the variable 'this.fieldArray[isUUIDpresent].selectArray' is Defined.
'this.fieldArray' is an array of structures. One member of some structure could be 'selectArray' I cannot do it with isDefined() function by doing this isDefined("this.fieldArray[isUUIDpresent].selectArray") since I get this:
"Parameter 1 of function IsDefined, which is now "this.fieldArray[isUUIDpresent].selectArray", must be a syntactically valid variable name. "
Error message is correct - it exposes limitation of isDefined() (cannot check existence of complex data type variables).
Thus, what I need is a function isArrayPositionDefined() or something like that. Currently I go about solving this problem using something like this:
<cftry>
<cfset temp = this.fieldArray[isUUIDpresent].selectArray>
<cfcatch>
<cfreturn "nothing here">
</cfcath>
</cftry>
....rest of code....
But this might be inefficient since I am shifting a lot of data around unnecessarily. Also in my debug I get all these exception calls which I have caught using above method -- they mask a real problem(s) when they arise.
I am open to some nice solution which will solve above problem. Also, it would be a nice change to bring the mailing list away from Eolas patent for a short while :)
TK
----- Original Message -----
From: Dave Carabetta
To: CF-Talk
Sent: Saturday, October 25, 2003 5:59 PM
Subject: Re: Eolas patent suit
> Sure!
>
> Lots of folks do: Crazy people, masochists, people who believe that
> "There's enough distrust in the world", Pirates (they like the "X"),
> Rerun from TV's "What's Happing!". um, Goofy (despite Micky and Donald's
> warnings), and, um. well - I think that's about it.
>
Well, I'm not sure Rerun is doing a whole lot of anything now that he's
dead. But the others, maybe. ;)
http://www.msnbc.com/news/983864.asp
Regards,
Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

