Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3791

OpenDialog for specific files

$
0
0

I’ve been reading through the documentation and cannot seem to find the answer to my question, which is “how do i launch an OpenFileDialog with only specific files being shown”? Our business uses a CaseNumber system and each Case has multiple PDF documents associated with the CaseNumber.

I want to launch an OpenFileDialog box and see only those files for a particular case (e.g., 1890_wks.pdf / 1890_inst.pdf / 1890_coc.pdf etc).

I can launch the OpenFileDialog and see all the files in the specified directory/folder, but I cannot seem to figure out how to limit the files being displayed to only those files/documents for a particular CaseNumber.

The code I’ve been using that gets me a list of all files in the directory:

Var opendialog As New OpenFileDialog
Var fFolder As FolderItem
fFolder = New FolderItem(app.strCaseNum + “.*”)
fFolder = opendialog.ShowModal

Any suggestions would be greatly appreciated.

18 posts - 7 participants

Read full topic


Viewing all articles
Browse latest Browse all 3791

Trending Articles