檢測文件屬性﹕
  ReadOnly.Checked := (Attributes and faReadOnly) = faReadOnly;請問(Attributes and faReadOnly) = faReadOnly 這段啥意思呀﹖謝謝﹗﹗

解决方案 »

  1.   

    文件操作权限的限制
    Attributes 为属性
    faReadOnly操作权限
      

  2.   

    我觉得你是没看明白语法;
    ReadOnly.Checked 是BOOLEAN类型的;
    (Attributes and faReadOnly) = faReadOnly这个表达式的结果必须和其类型相同
      

  3.   

    我的問題是﹕(Attributes and faReadOnly)是一個邏輯操作﹐(屬性 and 操作權限)﹐結果是什么呢﹖其結果再 =操作權限 ﹐又是什么意思呀﹖
      

  4.   

    ReadOnly.Checked 是BOOLEAN类型的,(Attributes and faReadOnly) = faReadOnly如果相等,结果是TRUE,反之,结果是FALSE!