Hello
I originally had the following code
whenever i had a txtcar value of say 35000, it would still og through the second case (case is <=4000). i changed the code to the code belowCode:Select Case txtCar.Text Case is <= 2500 msg = MsgBox("Car Price not recommended for this model. Are you sure you want to use this Price", vbQuestion) Case is <= 4000 save_parameters NodeBAll.SaveTab2.Enabled = False NodeBAll.MousePointer = 0 'do nothing Case Else msg = MsgBox("Car Price not recommended for this model. Are you sure you want to use this Price", vbQuestion) End Select
and it works, i was wondering why does not the is operator work?Code:Select Case txtCar.Text Case txtCar.Text <= 2500 msg = MsgBox("Car Price not recommended for this model. Are you sure you want to use this Price", vbQuestion) Case txtCar.Text <= 4000 save_parameters NodeBAll.SaveTab2.Enabled = False NodeBAll.MousePointer = 0 'do nothing Case Else msg = MsgBox("Car Price not recommended for this model. Are you sure you want to use this Price", vbQuestion) End Select




Reply With Quote