Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am doing a test in VB.NET to determine if a value is in a range between two values.
Using the below:
VB
If ((Val(Smallest) * 1000) < QuiescentCurrentLow) Or (Val(Smallest) > QuiescentCurrentHigh) Then
    ' go to fail mode
    QuiescentBool = True
    txtQuiescentI.BackColor = Color.OrangeRed
    QuiescentBool = True
    Throw New Exception(" Quicent Current Test Failure")
    'need to sort out stop/continue here!!! will Throwing the exception will be handled by catch()

    'TestFailed()
End If

I have seen a value falling out side the Limits (28 to 39) I have tried to reproduce the reading in the debugger and have failed to get a reading the will fail on either reading.
It will won't it?

Glenn
Posted
Comments
glennPattonWork3 4-Aug-14 7:24am    
Not to worry I have solved the issue I was having thanks! Is there a delete question option.
Thomas Daniels 4-Aug-14 7:55am    
Yes, there is, it is somewhere next to the "Improve question" button. Note that you cannot delete questions if they have answers.

1 solution

Answered only to remove from unanswered queue...solved by OP.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900