Operands of type Object used in expressions for 'Select, Case

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Operands of type Object used in expressions for 'Select', 'Case' statements;
runtime errors could occur.

Why does this generate a warning in VS 2005? In every case this expression
is value of a option group or combo box which always have a value.

Does ignoring these warning slow compile time or run time? (This is from a
previouls VS 2003 project and there are 144 of them)

It seems to me that decaring a simple data type to hold the value and then
basing the expression on that simple data type is a wasted extra step.

WR
 
Back
Top