LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

path control limit extention type

How do I use a path control and limit the extention? I do not want to have *.* All files available.
0 Kudos
Message 1 of 8
(4,433 Views)
Create a property node and select "Browse Dialog Options -> Match Pattern" to limit the type of extension you want.
0 Kudos
Message 2 of 8
(4,432 Views)
If you don't need to change the extensions dynamically, you can just right-click the control and choose �Browse Options��. Type the extension in the �Match Pattern� field (e.g. �*.*� in your case, and maybe �*.vi� in other cases). Please see the attached image for an example.

I hope this answered your question.

Best regards,
Philip C.
Applications Engineer
National Instruments
www.ni.com/ask
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 3 of 8
(4,432 Views)
festo wrote in message news:<5065000000080000008B020100-1079395200000@exchange.ni.com>...
> How do I use a path control and limit the extention? I do not want to
> have *.* All files available.

Right click the control and select 'Browse options...'
0 Kudos
Message 4 of 8
(4,432 Views)
I forgot how to limit the type to REMOVE "*.* All Files"
0 Kudos
Message 5 of 8
(4,358 Views)
Hi festo,

I'm not sure that I understand your question. Do you want to specify certain file types to browse for? In that case, add the file type you want to be able to browse for to the 'Match Pattern':



Let me know if this is not what you want.

Message Edited by Philip C. on 05-26-2005 09:53 PM

- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 6 of 8
(4,348 Views)
My problem does not have to do with specifying certain file types. The issue is when the control is activated, I do not want an end user to be able to select "All Files (*.*)".
0 Kudos
Message 7 of 8
(4,337 Views)
Hi festo,

As far as I know, there's no way of removing the "All Files (*.*)" choice from the "Files of type:" menu. If you absolutely need this choice to be removed, you can create some code that calls the Windows DLL that creates the "file open" dialog, by clicking a button on the front panel of the VI.

Let me know what you choose.
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 8 of 8
(4,321 Views)