> From: Conan Saunders
>
> In CFMX 6.1, are these two functions completely equivalent,
> or is there a difference?
>
> isDefined("APPLICATION.MyVar")
>
> structKeyExists(APPLICATION, "MyVar")

It also depends on the name of the variable

Take for example a variable named "_data"
You cannot do:
isDefined("application._data")

But you can do:
structKeyExists(application, "_data")

Also, variables with spaces in them can't be done with isDefined()
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to