Results 1 to 2 of 2

Thread: Saving question, opening

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Posts
    482

    Post

    Hey, I am making a program to save a FORM type thing. And I need a way that it will save the forms into a Folder..

    Say the person installs the program into
    C:\program files\mystuff\ i would like the form to be automaticly saved to where they installed it and to the folder PROG ex.
    they click save and it puts it into
    c:\program files\mystuff\prog\

    and Also I need a way they can open the saved form. so how do i make a dialog box appear and ONLY the ending type say ".frm" it will only show those files with that ending?


    thanks

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    When specifying File/Folder Locations within your application using the App.Path Property will return a string containing the Path from which the App was Launched, ie. the Installation Folder.

    MkDir App.Path & "\AppSubDir" 'Creates a Sub Directory called "AppSubDir" in the Application Directory.

    To display only .frm extensions in a Dialog, use the Filter Property of the CommonDialogbox, eg.

    CommonDialog1.Filter = "Forms (*.frm)|*.frm"

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


    [This message has been edited by Aaron Young (edited 11-26-1999).]

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