STEVEN,

On 1/14/2004 at 00:26, you wrote:

DSJA> Shouldn't it be:


DSJA> <cfif not isDefined("client.pods")>


DSJA> Quotes around the client.pods?

Yes, since isdefined() is checking for the existence of a variable
named "client.pods".

Without the quotes it evaluates client.pods and treats its value as
the name of the variable it's to check for.

<cfscript>
        client.pods=structNew();
        somevar="client.pods";
        if(not isDefined(somevar)){
                writeoutput("NOT DEFINED");
        }else{
                writeoutput("DEFINED");
        }
</cfscript>

Since you can't have a complex value in the client scope without first
converting it to simple value (WDDX is good for this), creating a
struct in the client scope throws this error:

"Invalid client variable contents

The value of the client variable PODS is not a string, number,
boolean, or date/time value. Only values of this type can be stored as
client variables."

~ Ubqtous ~
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to