ebArchive (constant)

Description

Bit position of a file attribute indicating that a file hasn't been backed up.

Comments

This constant is equal to 32.

Example

This example dimensions an array and fills it with filenames with the Archive bit set.

Sub Main()
  Dim s$()
  FileList s$,"*",ebArchive
  a% = SelectBox("Archived Files", "Choose one", s$)
  If a% >= 0 Then     'If a% is -1, then the user pressed Cancel.
    MsgBox "You selected Archive file: " & s$(a)
  Else
    MsgBox "No selection made."
  End If
End Sub

See Also

Dir, Dir$ (functions); FileList (statement); SetAttr (statement); GetAttr (function); FileAttr (function).

More information

E