Getting application path in Firemonkey

為{幸葍}努か 提交于 2019-12-03 16:11:02

问题


So in VCL, one would use the following line of code to retrieve the applications path:

ExtractFilePath(Application.ExeName)

I tried the same thing Firemokey and I noticed that ExeName was no longer available. What code can I use as an alternative to this?


回答1:


Try using ParamStr(0) instead of Application.ExeName.




回答2:


I'm using

showmessage(System.SysUtils.GetCurrentDir);

and works like a charm :)



来源:https://stackoverflow.com/questions/15218979/getting-application-path-in-firemonkey

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!