From: mc7628 on
The error I'm getting -

"You have attempted to dereference a scalar variable of type class
java.lang.String as a structure with members"

The offending code in CFMX 6:

<cfquery name="qryGetPrjMnth" datasource="#application.dbName#"
username="#application.dbUserName#" password="#application.dbPwd#">
select name
from projectedMonth
where id=#Variables.projectedMonth#
</cfquery>
<cfset sOppDetails.prjMonth = qryGetPrjMnth.name>

sOppDetails is a new Structure, and Variables.projectedMonth is a valid value.
The query qryGetPrjMnth runs fine, returns 1 result. I can cfdump it and look
at it just fine.

So what gives?

From: BSterner on
Can we see all of your code. What you have looks fine. It may be reporting the error on the wrong line.
From: mc7628 on
Must have been a server glitch or some other 'black box mystery', because I didn't change one line of code and it works just fine now.
 | 
Pages: 1
Prev: upload form image
Next: Addition Problems