On 10/2/06, Justin Darnell <[EMAIL PROTECTED]> wrote:
I have a class written in FoxPro who's first task upon init is to get
some settings out of a table and load them as properties on the
object.  When I instansiate the object (via com) and call the
GetSettings() method there are no errors.  However, I don't have any
new properties.

The code for this is:
lo = createobject("Backup.BackupManager")
lo.GetSettings()
?lo.FTPhost (Check to see if property exists:  ERROR unknown name)

I've made this mistake before. The problem is that COM is a contract
between the component and the outside world that says "This is how you
call me." If you add the properties at Init time, you violate that
contract.

Can you add the properties at design time, and just populate them at runtime?


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to