|
-
Jul 26th, 2005, 01:19 PM
#11
Thread Starter
Junior Member
Re: Saving a Text File
 Originally Posted by JBD2
Actually use this code instead:
VB Code:
Private Sub Command1_Click()
cd1.ShowSave
On Error Resume Next
Open cd1.FileName For Output As #1
Print #1, Text1.Text
Close #1
End Sub
So if cancel is pushed, then there isn't an error.
THANK YOU! This worked great. Is there a way I can set a default file format for the app to save to, since my wife is not technically-minded enough to remember? Also, for the "Open," and "Print" commands, Do I need an separate Common Dialog for each one? Thanks, again, Dennis
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
|