Ignore the repost request -- fished it out the archives

> OK I have some structures I am referencing like this.
> 
> Stylesheet[".default"]
> 
> But I need to check they are defined before I reference them in case
> they do not exist.

So you have a structure called "stylesheet", and one of the keynames is
".default"?

On CFMX 6.1 (don't have CF5 to test on), this outputs YES:

temp = structNew();
structInsert(temp, ".fred", "fred");
writeOutput(structkeyexists(temp, ".fred"));

Is this what you're trying to achieve in CF5?

> The only other thing I can think of doing is a try/catch block, which
I
> can't do in a UDF unless I make this app CFMX only

AFAIK, try / catch in cfscript or a udf works in CF 5 -- doesn't it?


-- 
Aidan Whitehall <mailto:[EMAIL PROTECTED]>
Macromedia ColdFusion Developer
Fairbanks Environmental Ltd  +44 (0)1695 51775
Queen's Awards Winner 2003 <http://www.fairbanks.co.uk/go/awards>

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to