Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on object refs keeping forms open
Message
De
12/11/1998 19:44:24
 
 
À
12/11/1998 08:21:17
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00156863
Message ID:
00157248
Vues:
32
Assigning one value to an array var is the same as assigning the same value to each element in that array.

Vlad

>I may be wrong, but I believe Nancy is talking about object references within the array, not a simple array itself.
>
>Renoir
>
>
>>This is not related to object refs. In VFP, when a value is assigned to an array (used as simple var, not as array), all elements in the array are set to that value. Ex:
>>
>>dimension a[100]
>>for i = 1 to 100
>> a[i] = i
>>endfor
>>*-- Here all elements in the array are different
>>a = 5
>>*-- Here all elements in the array are 5
>>
>>Vlad
>>
>>>We all know about setting our object references to NULL when a form is released. That is, the objects we assign to properties or create during the life of the form.
>>>
>>>I found out tonight that instead of setting each element of an array property containing object references to NULL, I needed to set the array property to NULL.
>>>
>>>Just for any who might be interested.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform