LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making file path control only select directory paths not file names

Seems the Browse button has a SelectionMode property which I can control,
but don't know what value should I set it.


vishi
0 Kudos
Message 1 of 6
(7,419 Views)
to set to existing directory with property node use 3. For other options, right click on path control, select browse options, then set it and read off the value with a property node
0 Kudos
Message 2 of 6
(7,419 Views)
Just to make our life easier...

You may choose to use the cluster control, the cluster constant or simply copy the enum for the selection mode.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 6
(7,419 Views)
In this case, it's not explicitly documented in the help file, but typically when NI implements something like this, the number range is the same as the order the options occur in if you set the property manually. In this case, the browse options dialog box with a popup for specifying the selection mode. In that list "existing dir" is item 3 (remeber to start counting at 0).

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 6
(7,419 Views)
Thanks everyone.


vishi

"Vishi Anand" wrote in message
news:3eb1a744@newsgroups....
> Seems the Browse button has a SelectionMode property which I can control,
> but don't know what value should I set it.
>
>
> vishi
>
>
0 Kudos
Message 5 of 6
(7,419 Views)
There is a "strip path" node in the file function toolbox. It will split the path name into two parts, the directory and the file.
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 6 of 6
(7,419 Views)