-
two quick questions
1) I need to have a YesNo Messagebox pop up only the FIRST time the button procedure is clicked. What is the easiest way to do that?
2) The Yes button is to replace, or overwrite an existing text file. How do I do that easily?
I'm just simply writing lines to a text file, and the first time the "Write" button is clicked, then the message box is to pop up. If YES is selected, then the file should be cleared out.
Thanks!
-
#1 - Use a static variable in the click event that acts as a flag
Static ClickedBefore As Boolean
If Not ClickedBefore Then Msgbox("Yada Yada")
ClickedBefore=True
#2 - Just delete the file and create a new one.
-