您的位置:首页 > 其它

ParamCount ParamStr ExtractFileExt(picPath)

2012-12-08 08:45 281 查看
procedure TForm1.FormCreate(Sender: TObject);
var
 picPath:string;
 ext:string;
begin
//showmessage(inttostr(ParamCount)+ParamStr(1));
if ( ParamCount = 0 ) then
begin
  //Application.Terminate;
  exit;
end;
 picPath:=ParamStr(1);
 ext:=ExtractFileExt(picPath);
 ext:=UpperCase(ext);
 showmessage(ext);
 //if ext then ...
 Image1.Picture.LoadFromFile(picPath);
end;

end.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: