ebNormal (constant)


Used to search for normal files.


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.


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 If
  a% = SelectBox("Normal Files", "Choose one", s$)
  If a% >= 0 Then
    MsgBox "You selected file " & s(a%)
    MsgBox "No selection made."
  End If
End Sub

See Also

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

More information