这句话看了半天也不明白,请帮忙指点,谢了UpdateIniPath = App.Path & "\Update.ini"

解决方案 »

  1.   

    App.Path 得到当前路径。比如是“c:”
    则UpdateIniPath ="c:\update.ini"
      

  2.   

    我的妈呀,晕死我了,App.Path 得到当前路径,也就是你的程序当前所在的目录路径,比如:c:\windows\aaa
    则UpdateIniPath ="c:\windows\aaa\update.ini"
      

  3.   


    把update.ini文件的路径赋给变量updateinipath
      

  4.   

    返回或设置当前路径。在设计时是不可用的。对于 App 对象,在运行时是只读的。Path 属性的值是一个指示路径的字符串,例如 C:\Ob 或 C:\Windows\System。对于 DirListBox 或 FileListBox 控件,在运行时当控件被创建时,其缺省值是当前路径。对于 App 对象,当从开发环境运行该应用程序时 Path 指定 .VBP 工程文件的路径,或者当把应用程序当作一个可执行文件运行时 Path 指定 .exe 文件。