Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save As Dialog

Status
Not open for further replies.
Nov 1, 2005
9
US
Well folks I have a real challenge. I am a VB coder that has now been informed by the boss that I need to learn enough Delphi that I can change a program from using a static string variable that is used to tell the application where to store files to having it open a save as dialog box so the user can select the location. To top it off I don't have the entire code (only a snippet that the developer sent), a compiler, and it has to be done by the 16th of December. Challenging!!!

Here is what I am thinking. If I could write the code in a .dll file then I will send the code to the developer and he can take it from there. Can anyone help me with this?

Thanks in advance
 

I'm afraid that's not how it works here. Tek-Tips is not a free help desk. It is a community of professionals helping each other. None of us get paid for our services, and contact outside of these threads is discouraged.

Delphi has a component for displaying the File Save dialog, namely TFileSave.

Look it up in the help file. It's not that hard. You set properties in a way that should seem familiar to a VB programmer.

Good luck.

If you get stuck, start a new thread and post the code you have come up with so far. Someone will then be glad to review it and give you a hand.

 
Also look up TSaveDialog in the Delphi help.

All you have to do is make a call to the Execute method:
Code:
if SaveDialog1.Execute then
  filename := SaveDialog1.FileName;

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top