No its not an array - so it throws this error:

trans.Type = "CC.Authorize";
trans.Field["MessageType"] = "A";
Error near line 44, column 13.
--------------------------------------------------------------------------------

The [] operator can only be applied to an indexed object. The provided object 
"trans.Field" is not indexed in dimension 1. In ColdFusion indexed objects can 
be query columns, arrays, structs and COM objects. 


Any other ideas?

> I ported  ASP code below,
> 
> <%
> 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 format in CF for line 
4?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:256396
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to