[VB6 ][VBA]请问 and 的问题

楼主: gecer (gecer)   2014-12-15 21:40:50
小弟最近参考一个更改file property的程式
http://stackoverflow.com/questions/750679/how-do-you-make-a-file-writeable-in-
vb
Dim fso As New FileSystemObject
Dim fil As File
Set fil = fso.GetFile("C:\foo.txt")
If (fil.attributes And vbReadOnly) Then
fil.attributes = fil.attributes -vbReadOnly
End If
小弟watch fil.attributes =32 如果是唯读的档案 但是为什么
32 and 1 =0 ?
请问在这里and的作用
作者: LPH66 (-6.2598534e+18f)   2014-12-15 22:07:00
这是 bitwise and

Links booklink

Contact Us: admin [ a t ] ucptt.com