Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dealing with dangling reference
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01539074
Message ID:
01539228
Views:
54
>>
>>FOR EACH oForm in Application.Forms
>>   IF TYPE("oForm.name") = "C"
>>      oForm.Release()
>>   ENDIF
>>ENDFOR
>>
>
>I didn't try using type("oForm.name"); could have been the solution. But I change it completely. Thank you; I will remember this for the next time.

The oForm.Name is just checking to see that the form object is actually there before trying to release it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform