if ParamCount>1 then//ParamCount是参数个数 ShowMessage(ParamStr(1));//ParamStr(0)代表应用程序自身
procedure TForm1.FormActivate(Sender: TObject); var i: Integer; begin for i := 1 to ParamCount do if i=3 then begin ComboBoxUrl.text:=ParamStr(i); realaudio1.SetSource(ComboBoxUrl.Text) ; realaudio1.DoPlay; end; end;
ShowMessage(ParamStr(1));//ParamStr(0)代表应用程序自身
var
i: Integer;
begin
for i := 1 to ParamCount do
if i=3 then
begin
ComboBoxUrl.text:=ParamStr(i);
realaudio1.SetSource(ComboBoxUrl.Text) ;
realaudio1.DoPlay;
end;
end;