Tom,

Sorry I missed the first part of your question.  The only other suggestion 
I have is that I have had problems calling a method and passing a parameter 
to it.  I tried it several times on an application I was writing and 
couldn't get it to work so I gave up.

What I do instead is have properties on the object for every parameter.  I 
then set these properties and call the method without parameters.  You just 
need to make sure that your methods understand that if they don't have 
parameters to look at the property on the object to get the value to 
use.  This seems to work very well.  To take the code I see below and 
change it I would do the following:

<cfset oASIWeb.PathParm = "E:\InetPub\wwwroot\SolidData\Data">
<cfset rs = oASIWeb.SetDataPath>

<cfset oASIWeb.DBParm = "sdweb">
<cfset rs = oASIWeb.SetDatabase>

<cfset oASIWeb.IDParm = "USERS">
<cfset RetVal = oASIWeb.NewID>

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: Sun, 3 Sep 2000 19:57:22 -0700
>From: "Tom Kim" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Subject: RE: Using COM with CF
>Message-ID: <[EMAIL PROTECTED]>
>
>Hi Dave,
>
>Unfortunately CFSET does not work either. I can get at the object's public
>properties, but running the method does not work. I've tried using MSWord as
>a COM object and that did work. I'm at a loss. Thanks for the suggestion
>though. --Tom
>
> > Unfortunately, using COM objects can be problematic with CF occasionally.
> > Instead of doing what you're doing within a CFSCRIPT, you might
> > have better
> > luck doing it within CFSET tags:
> >
> > <cfset rs = oASIWeb.SetDataPath("E:\InetPub\wwwroot\SolidData\Data")>
> > <cfset rs = oASIWeb.SetDatabase("sdweb")>
> > <cfset RetVal = oASIWeb.NewID("USERS")>
> >
> > That usually works for me. To be honest, I've never used COM
> > objects within
> > CFSCRIPT, but I wouldn't be surprised if they're not supported within
> > CFSCRIPT as well as they should be.
> >
> > Dave Watts, CTO, Fig Leaf Software
> > http://www.figleaf.com/
> > voice: (202) 797-5496
> > fax: (202) 797-5444
> > ------------------------------------------------------------------
> > ------------
> > Archives: http://www.mail-archive.com/[email protected]/
> > 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.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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