السلام عليكم ، وجدت الكود التالي في كتاب علم نفسك فيجوال بيسك 6 في 21 يوم وعلق الكتاب على أحد الأكواد بكتابة "يعمل المعامل And على البتات"
ما معنى الجملة السابقة وإليكم الكود
Private Sub Text1_KeyDown(KeyCode as Integer , Shift as Integer)
Dim int_Shift_State As Integer
int_Shift_State = Shift And 7 'المعامل And يعمل على البتات (Special bitwise And)
Select Case int_Shift_State
case 1
MsgBox(" shift ")
case 2
MsgBox(" ctrl ")
case 3
MsgBox(" Alt ")
case 4
MsgBox(" Shift + Ctrl ")
case 5
MsgBox(" Shift + Alt ")
case 6
MsgBox(" ctrl + alt ")
case 7
MsgBox(" shift + ctrl + alt ")
End select

