S
suyude
Unregistered / Unconfirmed
GUEST, unregistred user!
我的程序界面如图:
http://www.yd123.com/cncg/playlist.jpg
代码如下:
unit Unit1;
interface
uses
Windows, FileCtrl, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
ListBox1: TListBox;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
i:string;
begin
SelectDirectory('浏览目录','',i);
end;
end.
请问大侠我应该如何加代码才能达到我的目的呀??谢谢!!!
http://www.yd123.com/cncg/playlist.jpg
代码如下:
unit Unit1;
interface
uses
Windows, FileCtrl, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
ListBox1: TListBox;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
i:string;
begin
SelectDirectory('浏览目录','',i);
end;
end.
请问大侠我应该如何加代码才能达到我的目的呀??谢谢!!!