If 2*(a And b) > 0 Then
Text2.Text = "a and b>0"
else
Text2.Text = "a and b<=0"
End If
则Text2.Text = "a and b<=0"好玩,谁遇到过?

解决方案 »

  1.   

    a And b=1 1>0没错啊!
      

  2.   

    a And b=0
    0x249 and 0x2000=1   ?!你会数学吗?
      

  3.   

    这也是BUG?你白痴啊?吃屎去啊,有基础没有啊你?
      

  4.   

    If a And b > 0 Then
    这句有问题,是因为优先级的事,在VB里“>”的优先级比“and”高,所以这个式子变成
    if a and (b>0) then 了
    也就是
    a>0   相当于True, B>0 也等于True
    True And True 结果等于True
    所以结果是正确的。
      

  5.   

    VB没有BUG,是你的脑袋有BUG吧
      

  6.   

    If 2*(a And b) > 0 Then
    Text2.Text = "a and b>0"
    else
    Text2.Text = "a and b<=0"
    End If
    这个题,在VB里True值等于-1 
    2*-1 是小于0的。 也没错。
      

  7.   

    jixian(极限) 快点向大家道个歉,每人给200分了结此事吧,不然。丢人了……
      

  8.   

    学点windows应用操作算了,开发不是靠学历,靠学习
      

  9.   

    废话。"a and b>0" 在vb会看作一个串。肯定是做样的结果。
      

  10.   

    不要随便说bug,那是要测试很久的
      

  11.   

    废话。"a and b>0" 在vb会看作一个串。肯定是做样的结果。
    这叫BUG?我要晕了,别扶我!!
      

  12.   

    大哥!a and b我依然不知是怎么回事?
      

  13.   

    a And b=0
    a And b > 0 =585
    a And b > 0 =585
    (a And b) > 0 =false
    多动点脑子,少谈论些主义。