OK, I am teaching myself VB, I am not really much of a programmer and so my apologies if this is a less than intelligent question, but here goes...
I am writing an app to delete files. There are several directories that contain the files. I want to give the user the option of deleting files from any or all directories, so I have check boxes (4 of them) with captions like "Delete Files From Dir A", "Delete Files From Dir B", etc.
Now, what I want to set up is a command button after the check boxes that will perform the deletions ( I am using the Kill statement), according to the selected check boxes.
How do I make the command button check the input of the check boxes before deleting files?
Also, in my testing I get a runtime -53 error if there are no files in the dir, so should I first (after clicking the command button) create a dummy text file in each dir, so it can process the Kill statement?
Thanks in advance for your help!
I am writing an app to delete files. There are several directories that contain the files. I want to give the user the option of deleting files from any or all directories, so I have check boxes (4 of them) with captions like "Delete Files From Dir A", "Delete Files From Dir B", etc.
Now, what I want to set up is a command button after the check boxes that will perform the deletions ( I am using the Kill statement), according to the selected check boxes.
How do I make the command button check the input of the check boxes before deleting files?
Also, in my testing I get a runtime -53 error if there are no files in the dir, so should I first (after clicking the command button) create a dummy text file in each dir, so it can process the Kill statement?
Thanks in advance for your help!