SaveAs and Open dialogs

  •  06-07-2004, 3:16 PM

    SaveAs and Open dialogs

    Hi all,

     
    I'm thinking of using this for an online app where we save text to the database as "files" to be edited later.  ie...each row has file_name and file_text columns  that allow the text to be reloaded, edited and then saved again.
     
    So I'm thinking I need an Open dialog which shows current "files" to choose from and then when selected opens the correct row and populates the editor with the file_text dependant on the file_name opened.  And I'll most likely need a SaveAs dialog that takes a file_name and allows the ability to either add a new "file/row" if the name doesn't exist or save the file_text correctly to the right row using an existing file_name.
     
    With that in mind, has anybody else done this bit?  I'd think this functionality is something that comes up a lot around here.  I've already done this for another editor, FTB, so if possible it'd be nice not to have to redo it again. 
     
    Any help is much appreciated!
     
    -C
View Complete Thread