Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a property to an object
Message
De
04/01/2017 11:44:55
 
 
À
04/01/2017 11:00:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Database:
MS SQL Server
Divers
Thread ID:
01646287
Message ID:
01646290
Vues:
72
J'aime (1)
your code fails to create a property for the object oChild.(as commented) with addproperty() function.
if it works for addproperty method this assumes ochild is a valid object.

Foxhelp enumerates the cases when it does not work:
Addproperty function This does not apply to COM objects created with Visual FoxPro OLEPUBLIC classes.
ADDPROPERTY( ) does not work when using the FOR EACH command with object references.
However, you can use the AddProperty method instead of Addproperty function(as where your code successfull).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform