Noob question!!! please help!

Please discuss general Delphi programming topics here.

Noob question!!! please help!

Postby Zolan » October 5th, 2003, 3:02 pm

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
Zolan
Active Member
Active Member
 
Posts: 12
Joined: October 5th, 2003, 2:58 pm

Postby Kambiz » October 5th, 2003, 9:34 pm

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.
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby Zolan » October 6th, 2003, 5:27 pm

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....
Zolan
Active Member
Active Member
 
Posts: 12
Joined: October 5th, 2003, 2:58 pm

Postby Kambiz » October 6th, 2003, 6:33 pm

:?

Drop a TOpenDialog on the form. Where you want to ask for a file, enter the following code:

Code: Select all
if OpenDialog1.Execute then
  ShowMessage(OpenDialog1.FileName);

That's all!
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron