Hi I am debugging an application I have built in vb studio 2002 I then upgraded to vbexpress 2005 it has picked up on what i presume is my bad programing the most common one is that I have several combo boxs where the user can pick an option and dependant on thier selection this or that is done. well the way i have done it vb does not like it comes up with this error message :-
"Warning 32 Operands of type Object used in expressions for 'Select', 'Case' statements; runtime errors could occur."
It is refering to this line of code:-
"Select Case nop_combo.SelectedItem"
what is wrong with using the select case method, and if I cannot use that will the old if then method be any better.


Reply With Quote
