Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorry to be such a Dullard!
Message
 
 
To
25/07/2010 20:27:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01473802
Message ID:
01473813
Views:
50
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform