Hi Bill,

Thanks for the tips. Having parenthesis after the method name confuses CF,
even the docs say that CF needs the parenths to differentiate between
properties and methods. The this stuff works does not even come close to
they way the docs said it would work. It's not ideal situation to have to
set the properties directly. This breaks encapsulation. In any case at least
it's working now so I can move on. Thanks again. --Tom

> -----Original Message-----
> From: Bill Grover [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 06, 2000 6:21 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Using COM with CF
>
>
> 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]

------------------------------------------------------------------------------
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