Results 1 to 5 of 5

Thread: Very basic question

  1. #1

    Thread Starter
    Lively Member Girvo911's Avatar
    Join Date
    Dec 2004
    Posts
    88

    Very basic question

    hi, i have a problem. I have been wokring on my own version of notepad for about, oh, 30mins now. And ive run into a problem. I would like to save the contents of the textbox to a file. thanks.

    -Girvo

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Very basic question

    Sample app to do exactly that.


    http://noteme.com/prog/babyeditor.zip



    ØØ

  3. #3
    Lively Member Misspell's Avatar
    Join Date
    Mar 2002
    Location
    Located
    Posts
    69

    Re: Very basic question

    Quick easy way...
    VB Code:
    1. Open "C:\TextFile.txt" For Output As #1
    2.   Print #1, Text1.text
    3.  Close #1

    Now to make the "Save As.." window pop open, so you can create a file name and pick a location to save the file: search out 'CommonDialog1' in the forums.

    [EDIT] Sorry, NoteMe posted as i was typing.

    ~ What was once an opinion, became a fact, to be later proven wrong... ~

  4. #4

    Thread Starter
    Lively Member Girvo911's Avatar
    Join Date
    Dec 2004
    Posts
    88

    Re: Very basic question

    Thanks everyone!
    Life may suck, but we can't live without it...
    ----------------------


    Quote Originally Posted by penagate
    What the hell is 'Ptr'? All pointers will be untyped? That points (if you'll excuse the lame pun) to disaster, if you ask me.

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Very basic question

    No problem Misspell.


    Just to add to my post. My sample actualy uses the CommonDialog too. So you get everything in one package. And it both loads and saves.


    ØØ

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