I see a typo in your code, did you cut and paste that?
This:
<cfset str = BBAPI.getVINValues("#VIN#)">

Could be this, as long as VIN evaluates to a string:
<cfset str = BBAPI.getVINValues(VIN)>

-- Josh

----- Original Message ----- 
From: "Christopher Jordan" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Tuesday, March 27, 2007 3:23 PM
Subject: Re: Need help instantating a COM object in CF7... It's my first 
time... :o(


> Jim! That worked great! The object instantiated first time. Very cool.
> And the answer makes so much sense! Duh... :op
>
> Anyway,
>
> Now I'm having trouble actually calling any methods in the object. If
> you or anyone could help, I'd be most appreciative (of course, I'll keep
> reading and trying stuff on my own too).
>
> Here's my code:
>
> <!--- instantiate the object and dump it. This works great! --->
> <cfset BBAPI = CreateObject("COM", "BBAPI.API")>
> <CFDump var="#BBAPI#" expand="false"><p>
>
> <!--- Now try to use one of the methods in the object --->
> <cfset VIN = Upper("1g2wn67t8n9264262")>
> <cfset str = BBAPI.getVINValues("#VIN#)">
> <CFDump var="#str#">
>
> I keep getting:
> Variable STR is undefined. What do I do about this? I thought that once
> I had the object instantiated, that I would be able to access it like
> any other object or component. I'm using the method just the way the
> author's API documentation shows.
>
> Stumped again. :o(
>
> Chris
>
> Jim Wright wrote:
>> Try running this at a command prompt...
>> regsvr32 x:\path\com\bbapi.dll
>>
>> Then use...
>> CreateObject("COM", "BBAPI.API")
>>
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273935
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