LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
InfiniteNothing

Add delete option to VI file menu

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.

file delete.png

 

If the VI is called by something else in memory, disallow deletion; tell the user to unload the VI from memory first or gray out the delete option.

Ask the user to save callees similar to close from the menu.

The VI file should be moved to the recycle bin or the trash can depending on the OS.

Delete the file from any open referencing projects

CLED (2016)
8 Comments
P@Anand
Trusted Enthusiast

So what will happen to the VI when the Delete is selected? Will it show "Save/Cancel" option or it will just abruptly close the window and totaly the file is gone? I am not sure how effective and a good option to have this with LabVIEW. Because Deleting a file and sending it to Recycle Bin is taken care by the OS. Even if you invoke deletion, OS will show a message "the file is open and cannot be deleted". Also what will happen if anyone selects it by mistake?

-----

The best solution is the one you find it by yourself
muks
Proven Zealot

I feel this button can be pressed by mistake but hopefully there will be prompt from which you can cancel the operation but i wont personally use this operation directly from labVIEW.

tst
Knight of NI Knight of NI
Knight of NI

LabVIEW had this feature in the project explorer and NI decided to remove it. You can see a discussion about it here including NI's reasons - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Restore-quot-Delete-from-Disk-quot-in-project-Files-vi...

 

That probably means they won't put it back in anywhere.


___________________
Try to take over the world!
AristosQueue (NI)
NI Employee (retired)

> That probably means they won't put it back in anywhere.

 

More probably it means that we're hoping in the next couple years to have a new project infastructure that makes it possible for us to put it back in without creating various problems. As usual, no promises about functionality that far out, but we would definitely like to have that functionality back, minus the problems it was creating. Fingers crossed.

InfiniteNothing
Active Participant

Here's some screenshots from notepad++

notepad2.PNG

sure.PNG

P@

Yes, you have to remove from memory before deleting the file

 

tst:

I'm hoping this is a bit more straight forward than deleting from the project in that the user is not in the context of the project so there's not as much confusion over if you are just removing it from the project and other issues like that.

CLED (2016)
P@Anand
Trusted Enthusiast
I am thinking the implementation point of view. In the earlier option you can delete the file from the project, so the file is not open and you can move the file to Recycle bin. But as per your idea the file is calling itself to be moved and this is the point I have confusion how it can be done anyway. And how this will happen when you just opened a VI without project and trying to delete and how LabVIEW will handle it.
-----

The best solution is the one you find it by yourself
InfiniteNothing
Active Participant

It should work the same way it works in notepad++. When the user selects "move to recycle bin" the environment will try to close the VI and remove it from memory. If it can't it will report "Can't close. File in use by x, y, z.vi". If it can close and release from memory, the environment will call the OS "move to recycle bin/trash" method.

CLED (2016)
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.