|
-
Dec 11th, 2002, 02:36 AM
#1
Thread Starter
Member
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!
-
Dec 11th, 2002, 02:46 AM
#2
#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.
-
Dec 11th, 2002, 02:48 AM
#3
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|