Ok, I have instantiated an object and all is fine. I am able to call various methods of that object easily, such as myobject.getId(), myObject.getName() , etc etc. These examples all return either a string or numeric value.
Now I have another method that returns a query. I've cfdumped what is returned by the method and it is indeed a query that's being returned.
By when I try to cfloop through the query I get an error.
Here's the cfloop code:
<cfloop query="myObject.myFunction()">
<p><cfoutput>#myObject.myFunction().title#</cfoutput></p>
</cfloop>
The error I get references the very first line and says:
invalid variable declaration [myObject.myFunction()]
Any thoughts? Thanks in advance!