PDA

Click to See Complete Forum and Search --> : Saving question, opening


progeix
Nov 25th, 1999, 05:51 AM
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

Aaron Young
Nov 25th, 1999, 11:37 AM
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
aarony@redwingsoftware.com
adyoung@win.bright.net


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