Expand Minimize
This topic has not yet been rated - Rate this topic

'AddressOf' expressions are not valid in the first expression of a 'Select Case' statement

Visual Studio 2008

You cannot use an AddressOf expression for the test expression in a Select Case statement. AddressOf expressions return function delegates, and the test expression of a Select Case statement must be an elementary data type.

Error ID: BC36636

To correct this error

  • Examine your code to determine whether a different conditional construction, such as an If...Then...Else statement, would work for you.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.