Warning : you must call FindClose after a successful FindFirst when you have finished searching (finished calling FindNext). Some are used by subsequent calls to FindNext. The SearchResult record comprises many fields. You may set Attributes from one or more of the above by concatenating them. The FileMask may contain a path, as well as a file name. If a match is found, then the return value is 0, otherwise, it is negative (and the result record is not filled in). The Attributes define files to search for in addition to regular files. The FindFirst function searches for files matching a FileMask and Attributes, returning the first match (if found) in SearchResult. Delphi Basics : FindFirst command Delphi Basicsįinds all files matching a file mask and attributesĬonst FileMask : string Attributes : Integer var SearchResult : TSearchRec
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |