这是否有效(如果使用或) [英] Does this work (if using Or)

查看:73
本文介绍了这是否有效(如果使用或)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在VB.NET中进行测试,以确定某个值是否介于两个值之间。

使用以下内容:

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:

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



我看到一个值超出限制值(28到39)我试图在调试器中重现读数并且未能读取读数将会失败。

它不会吗?



格伦


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

推荐答案

仅回复删除来自未答复的队列......由OP解决。
Answered only to remove from unanswered queue...solved by OP.


这篇关于这是否有效(如果使用或)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆