Hi,
I have the following code in EnableMenuItems:
// FileClose is activated if there is a Window to close
If WindowCount > 0 Then
FileClose.Enable
Else
FileClose.Enabled = False
End If
and when running (in the IDE) with no open window (no visible nor
invisible window), the File.Close MenuItem is activated and the
FileClose Menu Handler is fired.
I had the bad idea to put in the FileClose Menu Handler:
Window(0).Close
so when there is no open window available to be closed, I've got an
exception.
I have changed my code, but the question is:
Is-it intended behavior ?
(of course, I cannot believe that it could be an intended behavior)
Cheers,
Emile
---
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
|