Outputting to text-files using commondialog.

Discussion in 'Archives' started by -------owned-------, Apr 30, 2007.

Outputting to text-files using commondialog.
  1. Unread #1 - Apr 30, 2007 at 4:25 PM
  2. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

    -------owned------- Guru
    Banned

    Outputting to text-files using commondialog.

    Well, this is like my other guide, but it will make you a nicer interface.
    First off, add Microsoft Common Dialog Control to your components. Have it named CDG. Now, add a text box (named txt) and a command button (named cmdsave). Set txt's multi-line to true. Make it pretty large. (This is going to be your notepad without open :D )
    Add this code to cmdopen:
    Code:
    CDG.showsave
    open CDG.filename for output as #1
    print #1, txt.text
    msgbox "File saved ;) ",,"My notepad =D"
    close(1)
    
    I will end up adding a guide for opening too.
     
< First Ever Valued Assistant? | Invision Free Web Design >

Users viewing this thread
1 guest


 
 
Adblock breaks this site