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.
相关文章推荐
- ExtractFileName、ExtractFileExt、ExtractFileDir、ExtractFilePath
- ExtractFileDrive、ExtractFilePath、ExtractFileDir、ExtractFileName、ExtractFileExt、ExtractRelativePath
- ExtractFileDrive、ExtractFilePath、ExtractFileDir、ExtractFileName、ExtractFileExt、ExtractRelativePath
- *Delphi中ExtractFilePath、ParamStr以及更多文件/目录操作涉及的函数。附加对应的例子
- ExtractFileDrive、ExtractFilePath、ExtractFileDir、ExtractFileName、ExtractFileExt、ExtractRelativePath、ExtractShortPathName-熊猫烧香代码学习之二
- error : A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be ext
- ExtractFilePath()
- ExtractFileDir 与 ExtractFilePath 的差别
- 利用Tstringlist对文件流进行处理(介绍extractfilepath(),savetofile(),loadfromfile()使用)
- ExtractFileDir 与 ExtractFilePath 的差别
- ExtractFileDir,ExtractFilePath
- Delphi中ExtractFileName和ExtractFilePath
- ExtractFileDrive、ExtractFilePath、ExtractFileDir
- ExtractFilePath(Application.ExeName)
- ExtractFileDir 与 ExtractFilePath 的差别
- 利用Tstringlist对文件流进行处理(介绍extractfilepath(),savetofile(),loadfromfile()使用)
- CBC TIniFile类以及ExtractFilePath
- ExtractFileDir 与 ExtractFilePath 的区别
- ExtractFileDir 与 ExtractFilePath 的差别
- ExtractFilePath及其关联的方法