首页 > 应用开发 > IT综合 > VB“超频”秘籍之隐藏的Variant变量(转)
| Dim name ' this is a variant |
| Dim x, y As Integer |
| Dim x As Integer, y As Integer |
| If (loopNdx Mod 10) = 0 Then DoEvents |
| Declare Function GetInputState Lib "user32" Alias "GetInputState" () As Long ' ... If GetInputState() Then DoEvents |
| value# = value# + 1#. |
| Const ONE As Double = 1 |
| If intValue And &H8000 Then ' most significant bit is set End If If lngValue And &H80000000 Then ' most significant bit is set End If |
| If anyValue < 0 Then ' most significant bit is set End If |
| If (x < 0 And y < 0) Or (x >= 0 And y >=0) Then ... ' the optimized approach If (x Xor y) >= 0 Then |
| If x >= 0 And y >= 0 And z >= 0 Then ... ' the optimized approach If (x Or y Or z) >= 0 Then ... |
| If x < 0 And y < 0 And z < 0 Then ... ' the optimized approach If (x And y And z) < 0 Then ... |
| If x = 0 And y = 0 And z = 0 Then ... ' the optimized approach If (x Or y Or z) = 0 Then ... |
| If x = 0 And y = 0 And z = 0 Then ... ' the optimized approach If (x Or y Or z) = 0 Then ... |
| If x <> 0 And y <> 0 Then If (x And y) Then ... |
| If (x <> 0) And y Then ... |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8781179/viewspace-925162/ ,如需转载,请注明出处,否则将追究法律责任。