Determines whether the value of an expression is inclusively between the values of two expressions of the same type.

确定一个表达式值是否包含在两个相同类型的表达式的值之间。

 
  
  1. BETWEEN(eTestValue, eLowValue, eHighValue)
参数
eTestValue
指定一个要测试的值。
eLowValue
指定一个下界值。
eHighValue
指定一个上界值。
返回值

逻辑值或者空值。
如果指定的表达式的值等于其中一个边界值或者大于下界值且小于上界值, BETWEEN( ) 返回真 (.T.)。 否则, BETWEEN( ) 返 回假 (.F.)。如果 eLowValue 或者 eHighValue 是空值, BETWEEN( ) 返回空值。

示例

下面的例子扫描orders 表中 order_amt字段值在 950 和 1000 之间的所有记录,并且显示cust_id 字段和 order_amt 字段。

 
  
  1. CLOSE DATABASES 
  2. OPEN DATABASE (HOME(2) + 'Data\testdata'
  3. USE orders  && Open order table 
  4.  
  5. CLEAR 
  6. SCAN FOR BETWEEN(order_amt,950,1000) 
  7.    ? cust_id, order_amt 
  8. ENDSCAN 
生疏的单词:
 
  
  1. determine
  2. 及物动词
  3. 1. 决心,决意。
  4. 2. 使下决心(多用被动结构)。 
  5. 3. 决定;断定,推定,确定,限定,规定。
  6. 4.[法律]了结,使终结。
  7. 5. 限制。
  8. 6.[物理学]测定。
  9. They determined to do this at any cost.他们不惜任何牺牲来坐此事。
  10. I'm determined to learn French. 我决定学习法语。
  11. The news determined her against further delay. 这消息使她下决心不再拖延。
  12. to determine what metals are present in the ore 测定矿石中有什么金属存在。
  13. A hill determined my view.一座山挡住了我的视线。
  14. 不及物动词
  15. 1. 决心;决定。
  16. 2.[法律]终结,终止。
 
  
  1. inclusive 
  2. 形容词 (opp. exclusive)
  3. 1. 含边界值
  4. 2. 包围住的,范围广的。
  5. 3. 包括...的;...也算入的(of)。
  6. 4. 一切开支包括在内的。
  7. 5. (语言使用上)不分男女的,(用词上)无男女性别歧视的(如不使用chairman而使用chairperson等)。
  8. -ly 副词,-ness 名词