Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorry to be such a Dullard!
Message
 
 
À
25/07/2010 20:27:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01473802
Message ID:
01473813
Vues:
49
>>How do you close one modeless form from another modeless form?
>>
>>Do form NewForm name New
>>
>>.... then what?
>>
>>Thanks,
>>
>>dg
>
>
>"New" is not initialized and does not appear in the call stack.
>
> I use a single modeless form as my application background. It is called from the main prg (with a read events following) and in it's init calls a menu. I have called this second modeless form - Do form NewForm name New. "New" is not initialized as a variable, and does not appear in the call stack, and cannot be closed by either of Naomi's routines. If I make the form modal, it is initialized as a variable and appears in the call stack, but of course I cannot close it from another form because it is modal.
>
>Thanks for all the help!
>
>dg

When you loop through _screen.Forms collection, do you see it?

e.g.
for each loForm in _screen.Forms
   if loForm.caption = 'My known caption'
      =messagebox('Here is our form: ' + loForm.Name)
      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