Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM and Access/Assign
Message
From
14/10/1998 18:39:15
Eric Barnett
Barnett Solutions Group, Inc
Sonoma, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00146877
Message ID:
00146930
Views:
30
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform