Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM and Access/Assign
Message
De
14/10/1998 18:39:15
Eric Barnett
Barnett Solutions Group, Inc
Sonoma, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00146877
Message ID:
00146930
Vues:
31
I'm not sure I understand what you mean.

"Collection" is an array of objects.
By adding an Access method to the Array named "Collection", I can use named references. For example, let's say I have a object that we will call oBiz. oBiz has a property DataObjects(1). Each object in Dataobjects has a property cname.

If I have code in my Access method like this (an ugly example):

LPARAMTERS nIndex1
IF VARTYPE(nIndex1)="C"
FOR nCounter=1 TO ALEN(this.dataobjects)
IF this.dataobjects(nCounter).cname=nIndex1
nIndex1=nCounter
EXIT
ENDIF
ENDFOR



>Eric,
>
>Youa re trying to address a property as if it was a method. Your assign will fire if you;
>
>Obj.Collection = "Name"
>
>You probably want a method to call to return the value for you.
Eric Shaneson
Cutting Edge Consulting
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform