Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More on object refs keeping forms open
Message
From
12/11/1998 07:58:57
 
 
To
12/11/1998 00:43:22
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00156863
Message ID:
00156906
Views:
34
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform