* #1 <cfobject type="COM" action="Create" name="trans" class="
Paymentech.Transaction">
#2 <cfscript>
#3 trans.Type = "CC.Authorize";
#4 trans.Field("A") ;
#5 </cfscript>

You could also use the cfset method:

<cfset trans.Type =  "CC.Authorize">
<cfset trans.Field =  "A">
<cfset ReleaseComObject(Paymentech.Transaction)>

Al

-----Original Message-----
From: Teddy Payne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 11, 2006 1:57 PM
To: CF-Talk
Subject: Re: COM object syntax in CF 5

You may want to perform <cfdump var="#trans#"> to see all the available
methods and see the correct syntax for what you are looking for.

Teddy

On 10/11/06, Rod Murillo <[EMAIL PROTECTED]> wrote:
>
> Hello:
>
> I ported  ASP code below and I am having a problem,
>
> <%
> Dim trans
> Set trans = Server.CreateObject ("Paymentech.Transaction")
> trans.Type = "CC.Authorize"
> trans.Field("MessageType") = "A"
> %>
>
> TO:
> #1 <cfobject type="COM" action="Create" name="trans" class="
> Paymentech.Transaction">
> #2 <cfscript>
> #3 trans.Type = "CC.Authorize";
> #4 trans.Field("MessageType") = "A";
> #5 </cfscript>
>
> An I get an error on line 4:
> Illegal left hand side of assignment near line 4, column 2. Left hand side
> cannot be a function call.
>
> What is the correct syntax?
>
> Thanks
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256413
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to