Hello All,
I apologize in advance as this may be a newbie question. I am currently
working with the Mach-ii methodology and was trying to do the following
in a CFC. I want to narrow down the error I am getting to either a
logic issue on my hand or something in the mach-ii framework.
I am basically trying to *overload* the CFC (might be confusing my terms
here). That is if the arguments passed to setInfo is a struct, then the
second function is called, if a simple numeric value is passed, than the
first function is executed.
<cffunction name="setInfo" access="public">
<cfargument name="bidAmount" type="numeric"
required="true" />
<cfset this.bidAmountD = arguments.bidAmount />
<cfset this.bidMaxAMount = arguments.bidAmount
/>
<cfset this.bidType = 1/>
<cfset this.bidderID = 0 />
<cfset this.targetAuctionID = 97507 />
</cffunction>
<cffunction name="setInfo" access="public">
<cfargument name="info" type="query"
required="true" />
<cfset this.bidAmountD =
arguments.info.bidAmount />
<cfset this.bidMaxAMount =
arguments.info.bidMaxAmount />
<cfset this.bidType = arguments.info.bidType />
<cfset this.bidderID = arguments.info.bidderID
/>
<cfset this.targetAuctionID =
arguments.info.targetAuctionID />
</cffunction>
Thanks in advance.
Sean Scott
http://www.kubeworks.com {work}
http://www.kubeworks.com/personal {play}
----------------------------------------------------------
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).