>> I'd like a generalized function where I could pass any window class
>> and
>> close it if it is open. Something approximating this:
>> 
>>   Function CloseWindow (W as Window)
>>      For i as integer = (WindowCount-1) downto 0
>>       if Window(i) isa W then Window(i).close
>>     Next
>>   End Function
>> 
>> The problem above is the compiler complains that w is not a class.
>> 
>> Is there a solution that I'm missing?
>> 
> 
> Perhaps; the problem is not entirely clear to me.  Is it that you
> want to close the framework-supplied instance of a window subclass,
> if open?
> 
> Charles Yeomans

Yes. And the barrier to a simple general function like the one above is that
one cannot pass a class as a parameter.

Thanks,

Keith


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to