Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement