I would like to see more options applied to a PATH control / indicator:
Let's assume I have a path control set to
C:\Users\Steve\Projects\MyProject\Config Files\My Config.ini
I would like to see a PROPERTY of that control called "Display", such that:
1... The data held by the control would not change regardless of the property setting. i.e., the terminal, a local var or value property always returns the complete path above.
2... The property defaults to "Normal" or "Full Path", and the display shows the full path.
3... If I set the property to "File.ext", then what I see on screen is "My Config.ini". Again, the control holds the full path, only the display is changed.
4... If I set the property to "File", then what I see on screen is "My Config". the extension is stripped.
5... If I set the property to "Folder+File.ext" then what I see on screen is "Config Files\My Config.ini".
6... If I set the property to "Folder+File" then what I see on screen is "Config Files\My Config"
There are edge cases to consider: what if I pass it a folder path when it's set to "File.ext" - does it show blank or "no file selected" or something.
This lets me avoid long paths in the display, without having to keep separate track of them in code.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.