Results 1 to 3 of 3

Thread: saving text with common dialog control

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    How can I save text from a rich text box using the Common Dialog control?

    Thanks

    Steve

  2. #2
    Guest

    Post

    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: wossnamex@talk21.com

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    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
  •  



Click Here to Expand Forum to Full Width