ebNormal (constant)

Description

Used to search for normal files.

Comments

This value can be used with the Dir$ and FileList commands and will return files with the Archive, Volume, ReadOnly, or no attributes set. It will not match files with Hidden, System, or Directory attributes. This constant is equal to 0.

Example

This example dimensions an array and fills it with filenames with Normal attributes.

Sub Main()
  Dim s$()
  FileList s$,"*", ebNormal
  If ArrayDims(s$) = 0 Then
    MsgBox "No filesfound!"
    End
  End If
  a% = SelectBox("Normal Files", "Choose one", s$)
  If a% >= 0 Then
    MsgBox "You selected 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