Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorry to be such a Dullard!
Message
 
 
À
25/07/2010 19:58:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01473802
Message ID:
01473808
Vues:
76
>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform