Question

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?

Était-ce utile?

La solution

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

Autres conseils

I'm using

showmessage(System.SysUtils.GetCurrentDir);

and works like a charm :)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top