Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorry to be such a Dullard!
Message
 
 
To
25/07/2010 19:58:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01473802
Message ID:
01473808
Views:
77
>>>>How do you close one modeless form from another modeless form?
>>>>
>>>>Do form NewForm name New
>>>>
>>>>.... then what?
>>>>
>>>>Thanks,
>>>>
>>>>dg
>>>
>>>New.Release()
>>
>>
>>Thank you! Hadda brain lock.....'errrr something locked ;)
>>
>>dg
>
>
>Still gotta lock.... Object New is not found????
>
>dg

Add a check
if vartype(new) = 'O'
   New.Release()
endif
OOPS - Brain damage.
Alternatively,

for each loForm in _screen.Forms
if loForm.Name = 'MyNameToSearch'
loForm.Release()
exit
endif
next
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform