Que veux dire if (Byte1 and 64) > 0 then?
Bonjour,
J'ai récupéré un programme en VBscript, et dans celui ci j'ai ça:
Code:
1 2 3 4 5 6 7 8 9
| tmpEDIDMfg=mid(strEDID,&H08+1,2)
Char1=0 : Char2=0 : Char3=0
Byte1=asc(left(tmpEDIDMfg,1)) 'get the first half of the string
Byte2=asc(right(tmpEDIDMfg,1)) 'get the first half of the string
if (Byte1 and 64) > 0 then Char1=Char1+16
'............... plusieurs lignes similaires
Char3=Char3+(Byte2 and 16)
'............... plusieurs lignes similaires |
Je ne comprends pas ce que ca fait... Principalement les "(Byte1 and 64)". Pourriez-vous m'aider? Merci
PS: le principe est de convertir en C#...