L
lanbing1400
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.DirectoryListBox1Click(Sender: TObject);
var
i:integer;
j:integer;
s:string;
begin
i:=DirectoryListBox1.ItemIndex;
j:=0;
while j<=i do
begin
s:=DirectoryListBox1.Items.Strings[j];
if j>1 then
edit1.text:=edit1.text+'/'+s
else
edit1.text:=edit1.text+s;
j:=j+1;
end;
end;
想偷懒都不行,这回可以啦
改改拿去用吧
var
i:integer;
j:integer;
s:string;
begin
i:=DirectoryListBox1.ItemIndex;
j:=0;
while j<=i do
begin
s:=DirectoryListBox1.Items.Strings[j];
if j>1 then
edit1.text:=edit1.text+'/'+s
else
edit1.text:=edit1.text+s;
j:=j+1;
end;
end;
想偷懒都不行,这回可以啦
改改拿去用吧