Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing objects in Arrays
Message
From
29/01/2002 11:00:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
29/01/2002 10:52:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00612195
Message ID:
00612207
Views:
22
>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
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform