Results 1 to 2 of 2

Thread: common dlg control

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    18
    How do I code a Save routine for a common dialog control ? I want to save the text from a text box to a file. I can make the Save as dialog appear but I don't know where and what to put for the save...

    Any hint, code or examples will be appreciated...

    Hemang

  2. #2
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    The save dialog is really only used to obtain a file name to be saved to.

    Once you have got the file name try the following :


    ' Open file for output
    Open FILENAME For Output As #1

    ' Output to file
    Print #1, Textbox.Text;

    ' Close the file
    Close #1

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