|
-
Jan 1st, 2000, 11:20 PM
#1
Thread Starter
Frenzied Member
How can I save text from a rich text box using the Common Dialog control?
Thanks 
Steve
-
Jan 1st, 2000, 11:36 PM
#2
It isnt the Common Dialog that saves the text, it is just a way of obtaining a filename.
once the user has closed the commondialog, you need to make the app OPEN the Filename FOR OUTPUT...
Code:
dim MyFile as byte
MyFile = freefile
Open commondialog.filename for output as #Myfile
print #Myfile, RichText1.text
close #MyFile
and that should do the trick!
------------------
Wossname,
Email me: [email protected] 
-
Jan 2nd, 2000, 04:05 AM
#3
Thread Starter
Frenzied Member
I get an error on this line:
Open CommonDialog1.FileName For Output As #MyFile
it says "Path\File Access Error"
Steve
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
|