Does this code error as well?

lo = createobject("Backup.BackupManager")
lo.GetSettings()
=TYPE("lo.FTPHost")
?lo.FTPhost &&(Check to see if property exists:  ERROR unknown name)

If it does, Do you have code to not add the property if the table was not
opened?

Tracy


> -----Original Message-----
> From: Justin Darnell
> Sent: Monday, October 02, 2006 11:03 AM
>
> 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)
>
>
> If I do the same thing using the actual class definition and
> not through com:
>
> SET PROCEDURE TO class.prg
> lo = createobject("backupmanager")
> lo.GetSettings()
> ?lo.FTPhost (ftp address returns properly.)
>
> I get what I'm looking for.  I get all of the settings loaded
> in properties like FTPhost.
>
> The path is set correctly.  My thought is that maybe I can't
> add properties on the fly to COM objects?
>
> Thanks,
>
> Justin Darnell




_______________________________________________
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