Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing objects in Arrays
Message
De
29/01/2002 11:00:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/01/2002 10:52:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00612195
Message ID:
00612207
Vues:
23
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform