if i >=3 and i <=7 then 
end if

解决方案 »

  1.   

    select case i
    case 3 to 7
    ...
    case 8 to 9
    ...
    case elseend select
      

  2.   

    if i < 3 or i >7 then 
    end if
    if i <8 or i >9 then 
    end if
      

  3.   

    我知道了 呵呵 :-) 如果有 Case 出现,则为必要参数。其形式为 expression,expression To expression,Is comparisonoperator expression的一个或多个组成的分界列表。To 关键字可用来指定一个数值范围。如果使用 To 关键字,则较小的数值要出现在 To 之前。