Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing objects in Arrays
Message
From
29/01/2002 13:34:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
29/01/2002 11:10:18
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00612195
Message ID:
00612315
Views:
30
There is no shortcut, AFAIK.

>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
>>
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
Reply
Map
View

Click here to load this message in the networking platform