What you've got below is fine but use "variables." instead of "this." otherwise you'll be creating publicly accessible data (when you really only want the data to be accessible inside the CFC instance).

On Apr 30, 2004, at 6:19 AM, Jamie Lawrence Jenner wrote:
function initvars {
this.ordernumber = ""
this.orderaddress1 = ""
this.orderaddress2 = ""
}

then when each function is invoked they would do this

function getcustaddress{
retrieves cust address and inserts into orderaddress
set this.orderaddress1 = #getcustaddress.address1#
set this.orderaddress2 = #getcustaddress.address1#
returns orderaddressid
}

A final function would then be invoked from submitorder and send an email

function sendmail{
<cfmail...>
Your order will be sent to:
#this.orderaddress1#
#this.orderaddress2#
</cfmail>
}


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to