| View previous topic :: View next topic |
| Author |
Message |
Zolan Member
Joined: 05 Oct 2003 Posts: 9
|
Posted: 05/10/03 15:02 Post subject: Noob question!!! please help! |
|
|
Dont laugh now!
(DELPHI)
I am working on an mp3 player but i cant open files, just directorys with browser dialog.
i have understood that the best way to open just files is with opendialog but i dont exactly know how to acomplish the task! very thankful for answers!
//Zolan |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 198
|
Posted: 05/10/03 21:34 Post subject: |
|
|
I think it's better you have some challenge.
Go to the Dialogs component palette, click on the OpenDialog component, and then press F1. You will find all you need to know. |
|
| Back to top |
|
 |
Zolan Member
Joined: 05 Oct 2003 Posts: 9
|
Posted: 06/10/03 17:27 Post subject: |
|
|
| Kambiz wrote: | I think it's better you have some challenge.
Go to the Dialogs component palette, click on the OpenDialog component, and then press F1. You will find all you need to know. |
tried that but.... |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 198
|
Posted: 06/10/03 18:33 Post subject: |
|
|
Drop a TOpenDialog on the form. Where you want to ask for a file, enter the following code:
| Code: | if OpenDialog1.Execute then
ShowMessage(OpenDialog1.FileName); |
That's all! |
|
| Back to top |
|
 |
|