Author Topic: List specific file types from FILELISTBOX control  (Read 202 times)

oradba4u

  • Full Member
  • ***
  • Posts: 107
List specific file types from FILELISTBOX control
« on: December 28, 2021, 08:18:45 pm »
All:
I'd like to list only specific file types (i.e. *.txt) instead of all files in GetDir() in my Dialog Box. Is this possible? Am I using the wrong control?

Thanks in advance


stanl

  • Pundit
  • *****
  • Posts: 1618
Re: List specific file types from FILELISTBOX control
« Reply #1 on: December 29, 2021, 02:36:03 am »
maybe askfilename()

JTaylor

  • Pundit
  • *****
  • Posts: 1792
    • Data & Stuff Inc.
Re: List specific file types from FILELISTBOX control
« Reply #2 on: December 29, 2021, 06:16:19 am »
If you look up FileListBox Control in the Help file and read that top section,  assuming I understand,  I think that answers the question.

Jim

td

  • Tech Support
  • *****
  • Posts: 4044
    • WinBatch
Re: List specific file types from FILELISTBOX control
« Reply #3 on: December 29, 2021, 07:17:04 am »
If the OP is referring to the FileListBox control used in WIL dialogs, the following Consolidated WIL Help file topic explains how to specify a file mask for the control.

https://docs.winbatch.com/mergedProjects/WinBatch/WINBATCH_FL_001.htm
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade