Select Case with Case IsA

Feedback Case Number:

I’m trying to do a SELECT CASE with a CASE ISA, but it doesn’t compile…

This code is put into an Opening Event Handler… (All my other tests failed also).

Select Case Me
Case IsA DesktopWindow
  Beep
  
Else
  MessageBox("Oups")
End Case

Am I missing something?

Regards,
Antoine

I think you want “End Select”, not “End Case” there at the end.

2 Likes

What error do you get?

A really stupid mistake. Thanks.

1 Like

That is End Case in C (and VB)… and…