In my experience with MIAW's so far, I've always found that if the variable
contains window("windowname"), the the associated file is open. However, I
do know about situations where the windowList will not contain the name of
the window, but a variable will still hold it. The forget() command on the
variable works well usually, but just this once, it's misbehaving.

I have a nagging doubt that a reference to my parent script is being stored
somewhere, and since it still contains a handle to the MIAW, the file is
not being forgotten. Could that be possible?

After this experience of mine I agree with Tab about whipping up a
customised solution to managing MIAW's though. I just wish I had that kind
of time right now. Thanx for the suggestions, people.

BTW, I found a nice "Window wrapper class" posted by Jakon Hede Madson on
Direct-L. Search the June 2000 archives for MAIW wrapper and you should run
into it. I'll use it on my next project. :-) Thanx Jakob.

Regards,
Pranav.



<snip>
MIAWs are weird.  A window variable will always say window("pranav"), and
by just checking, say, getPos(the windowList, window "pranav") you can
cause it to appear (or something - I just made that one up) in the
windowList, even if you never opened the window or assigned it to a
filename, and after you "forget" the window it should disappear from the
windowList but if you look at the variable it can still say
window("pranav") but if you try to reference a property, say, 'the visible'

of it, it might throw an error (sometimes - depends how it got into the
list).
<snip>


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to