12-21-2004, 03:50 PM | #1 | ||
College Prospect
Join Date: Nov 2003
Location: Flower Mound, TX
|
Yet Another Visual Basic Question
I'm working with the save as common dialog box for the first time, and I'm either confused or missing something very simple here.
Ok, I've been working on a utility that will generate the csv files needed for the FOF draft utility that Solecismic produces. In my first release, I just designated a folder for where the files would go. This time, I wanted to give the user the ability to choose where it will go. I've created the Save As Dialog box. Now my question, is how do I store what they call the file and the location they place file so that I can find it within the program. I can't really find much information about the dialog boxes in the reference books that I own. Any help will be greatly appreciated. |
||
12-21-2004, 08:07 PM | #2 |
Pro Starter
Join Date: Jul 2003
Location: South Bend, IN
|
The function of the save dialog is to get the filename for you (available in the Filename property of the dialog control). After that, it's up to you what you do with it -- you have to code the file operations yourself. You may also want an Open dialog so they can find the files they save, and you may wish to use the registry or an initialization file (I prefer the registry, even though MS is starting to try to move away from it) to store the last file or a recent file list.
__________________
Hattrick - Brays Bayou FC (70854) / USA III.4 Hockey Arena - Houston Aeros / USA II.1 Thanks to my FOFC Hattrick supporters - Blackout, Brillig, kingfc22, RPI-fan, Rich1033, antbacker, One_to7, ur_land, KevinNU7, and TonyR (PM me if you support me and I've missed you) |
12-22-2004, 12:10 AM | #3 |
College Prospect
Join Date: Nov 2003
Location: Flower Mound, TX
|
Ok, can I set a variable like sFileName As String to store the name they enter for the file? I've played around with it some this afternoon, but I haven't had a whole lot of time to really get into it all. I might need to go back and read some more.
|
12-22-2004, 01:41 AM | #4 |
Pro Starter
Join Date: Jul 2003
Location: South Bend, IN
|
Or just access the Filename property on the common dialog control directly.
__________________
Hattrick - Brays Bayou FC (70854) / USA III.4 Hockey Arena - Houston Aeros / USA II.1 Thanks to my FOFC Hattrick supporters - Blackout, Brillig, kingfc22, RPI-fan, Rich1033, antbacker, One_to7, ur_land, KevinNU7, and TonyR (PM me if you support me and I've missed you) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|