Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic Non-Visual Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00248925
Message ID:
00249003
Vues:
30
Sorry for the lack of info...

Here's a little history...

I am trying to compile a com (dll) object that can be referenced from another application. I want to be able to return the structure of a table and set properties that expose records in that table. I am trying to make this dynamic (creating properties on the fly) so whenever the table changes... I don't have to change my com code.

It seems my problems revolve around working with an object accessed through com (olepublic).

the loObject.AddProperty() call (and dimensioning my array) seems to work fine if I set procedure to...
loObject = createobject("test")
loObject.addproperty("icNewProperty", "Test")
? loObject.icNewProperty (returns Test)

but does not work if I compile a com dll (define class Test as custom olepublic)
loObject = createobject("com.Test")
loObject.addproperty("icNewProperty", "Test") (returns .t.)
? loObject.icNewProperty (ole error)

Thanks for your help.

Nat-
Nathaniel Moody
Omnicell Technologies
natm@omnicell.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform