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?

有帮助吗?

解决方案

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

其他提示

I'm using

showmessage(System.SysUtils.GetCurrentDir);

and works like a charm :)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top