在Firemonkey中获取应用程序路径 [英] Getting application path in Firemonkey

查看:133
本文介绍了在Firemonkey中获取应用程序路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此在VCL中,将使用以下代码行检索应用程序路径:

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

ExtractFilePath(Application.ExeName)

我尝试了相同的方法Firemokey,但我发现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?

推荐答案

尝试使用ParamStr(0)代替Application.ExeName.

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

这篇关于在Firemonkey中获取应用程序路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆