Is UserType really a query? Also, why the quotes around 0, and user
type? Also, if user type is a query, it seems kind of dangerous to
sometimes copy it to the request scope as a query, and sometimes as a
string. Ie, you either copy the query, or the string "Clinical".

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Bruce Sorge [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 10, 2003 1:25 PM
> To: CF-Talk
> Subject: MX Error
> 
> 
> I am receiving this error on a CFMX site.
> 
> You have attempted to dereference a scalar variable of type 
> class java.lang.String as a structure with members
> 
> The section of code that it does not like is this piece that 
> is wrapped inside a cfscript tag:
> 
> if (UserType.RecordCount NEQ "0") {
>     Request.UserType = "#UserType#";
>         }
> else {
>     Request.UserType = "Clinical";
>         }
> 
> 
> 
> I am not sure what the deal is.
> 
> 
> 
> TIA,
> 
> 
> 
> Bruce
> 
> 
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to