[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