J
js916
Unregistered / Unconfirmed
GUEST, unregistred user!
请大家帮我看看这段代码,为什么总是显示的是d1z.ppt文件呢?
begin
if Listbox1.Selected[0] then
PageControl1.ActivePage:=ListBox1.Items.objects[0] as TTabSheet;
path:=ExtractFilePath(Application.ExeName)+'/dzja/d1z.ppt';
OleContainer1.CreateLinkToFile(path,False);
if Listbox1.Selected[1] then
PageControl1.ActivePage:=ListBox1.Items.objects[1] as TTabSheet;
path:=ExtractFilePath(Application.ExeName)+'/dzja/d2z.ppt';
OleContainer1.CreateLinkToFile(path,False);
if Listbox1.Selected[1] then
PageControl1.ActivePage:=ListBox1.Items.objects[1] as TTabSheet;
path:=ExtractFilePath(Application.ExeName)+'/dzja/d2z.ppt';
OleContainer1.CreateLinkToFile(path,False);
end;
begin
if Listbox1.Selected[0] then
PageControl1.ActivePage:=ListBox1.Items.objects[0] as TTabSheet;
path:=ExtractFilePath(Application.ExeName)+'/dzja/d1z.ppt';
OleContainer1.CreateLinkToFile(path,False);
if Listbox1.Selected[1] then
PageControl1.ActivePage:=ListBox1.Items.objects[1] as TTabSheet;
path:=ExtractFilePath(Application.ExeName)+'/dzja/d2z.ppt';
OleContainer1.CreateLinkToFile(path,False);
if Listbox1.Selected[1] then
PageControl1.ActivePage:=ListBox1.Items.objects[1] as TTabSheet;
path:=ExtractFilePath(Application.ExeName)+'/dzja/d2z.ppt';
OleContainer1.CreateLinkToFile(path,False);
end;