Ok, this method:
-------------------------
<cffunction name="createThing"...>
<cfargument name="thingName" type="string" required="true">
<cfset var theNewThingUUID = "">
<cfset var createThingCheck = "">
<cfset var theReturnString = "">
<cfmodule template="myPath/newkey.cfm" type="THING" output="no">
<cfset theNewThingUUID = variables.newkey>
<cfquery name="insertThing"...>
INSERT INTO Thing (
thingName,
thingUUID
)
VALUES (
'#arguments.thingName#',
'#theNewThingUUID#'
)
</cfquery>
<cfscript>
createThingCheck = retrieveThing(theNewThingUUID);
if(createThingCheck.recordCount IS 1)
theReturnString = theNewThingUUID;
else
theReturnString = "ERROR...";
</cfscript>
<cfreturn theReturnString>
</cffunction>
-------------------------
When called by this test code...
-------------------------
variables.Thing = createObject("component","myPath/thing");
variables.thingName = "New Thing Test";
variables.theNewThing =
variables.Thing.createThing(variables.thingName);
<cfdump var="#variables.theNewThing#">
-------------------------
...results in an output of the cfdump that has the newThingUUID listed
TWICE???? Quite literally, it looks like this:
-------------------------
THING_blahblahblah THING_blahblahblah
-------------------------
I don't get it... (hopefully I'm just missing something really
stoopit...)
But, why is the return variable listed twice when I dump it?
Anyone?
Thanks.
David
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]