|
-
Nov 25th, 1999, 06:51 AM
#1
Thread Starter
Hyperactive Member
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
-
Nov 25th, 1999, 12:37 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|