Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing objects in Arrays
Message
From
29/01/2002 11:10:18
 
 
To
29/01/2002 11:00:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00612195
Message ID:
00612210
Views:
23
I have been using FOR and FOR EACH, I just wanted to know because I had to type that same statement in several times, I will create a func to do it.

Thanks
Kev

>>Hi
>>
>>I have an Array that contains a few objects. Is there a command similar to SetAll() that I can use to set values to all of the objects?
>>
>>Thanks
>>Kev
>
>I don't think so, but you can use a FOR EACH loop, or:
>
>
>for i = 1 to alen(aMyObjects)
>  aMyObjects(i).MyProperty = ...
>next
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform