Jason,

I would try 2 things.  First I have not had great success using () when 
calling methods.  You should be able to call it without the 
parenthesis.  Secondly, you need to set a variable to the return value of 
your object.  Your CFOBJECT statement is fine but it only creates an object 
with the name recordset.  When you call your GetOrders method you need to 
capture the actual recordset returned.

This would make your method call the following:

<cfset resultset = recordset.getorders>

Now when you loop your collection reference resultset instead, it actually 
contains your recordset.

Bill Grover
Supervisor, IS
EU Services, Inc.
649 N Horners Ln
Rockville MD 20850

Phone:  301-424-3300 x396
FAX:    301-424-3300 x1396#
E-Mail: [EMAIL PROTECTED]

>------------------------------
>
>Date: Tue, 5 Sep 2000 16:42:06 +0100
>From: "Jason Glaun" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: CFOBJECT and com components
>Message-ID: <[EMAIL PROTECTED]>
>
>This is a multi-part message in MIME format.
>
>------=_NextPart_000_001B_01C01758.3A50AB20
>Content-Type: text/plain;
>         charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>Ok I have built a com component in VB and registered it on the server =
>with regserver32.   I am now trying to use it in cf but I cant seem to?
>
>Here is how I call the object, and it is supposed to simply return a =
>recordset.
>
>     <cfobject=20
>             type=3D"com"
>             name=3D"Recordset"
>             class=3D"macoOrder.cOrders"
>             action=3D"create">
>
>     This bit works fine but when I want to use a method of the object =
>(GetOrders) it seems to fall over.
>
><cfset Recordset.getOrders()>
>
>This doesn't work
>
><cfloop collection =3D #Recordset#  item =3D whatever>
>     <cfoutput>
>         #whatever#
>     </cfoutput>   =20
></cfloop>
>
>doesn't work either?????   any suggestions???

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to