Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining number of objects in a form
Message
 
 
À
23/11/1999 11:37:16
Jorge Haro
Independent Consultant
Juarez, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00294135
Message ID:
00294823
Vues:
26
Jorge,

The amembers() function does create a real array. Don't confuse this array with the native collections.

I think help and docs label collections as arrays because you access it just like an array, but as you found collections don't work in functions like alen(). The Controls, Objects, DataEnvironment, Pages etc collections exist in the appropriate container classes.

>>Because the Form.DataEnvironment is it's own collection.
>
>So it's not an object then, but it's not an array either, it's a...collection :). Why does AMEMBERS(aArrayName, 2) which according to help:
>
>"Specifies that the array contains the names of the objects that are members of the object specified with ObjectName. The resulting array is one-dimensional."
>
>include the DE in the array?, I mean, no big deal, there are workarounds, but the terminology is confusing.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform