本文介绍了在VFP 9应用程序启动屏幕上显示内部版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发VFP 9上的应用程序。 有一个带有版本对话框的构建对话框。 但是当我构建并运行EXE时,版本号似乎很少更新,即使它在对话框中已更改。 奇怪的是
有时似乎更新了,但有时却没有更新。 

I'm developing an application on VFP 9.  There is the build dialog box with a version dialog box.  But when I build and run the EXE, the version number seems to rarely update, even though it's changed in the dialog box.  The weird thing is that sometimes it does seem to update but not other times. 

推荐答案

作为一种可能的解决方法,您可以添加"关于"在Your.exe中使用以下版本标签形成:



exeDate = FDATE('YourApp.exe')

labelCaption ='Build :'+ TRANS(YEAR(m.exeDate));

  +'。'+ TRANS(MONTH(m.exeDate));

  +'。'+ TRANS(DAY(m.exeDate))



今天它将作为Build:2017.1.22以


这可能对您的目的来说太简单了,但它的优点是您不必记住每次构建时都要更改它。

As a possible workaround, you could include an "About" form in Your.exe with a version label something like:

exeDate = FDATE('YourApp.exe')
labelCaption = 'Build: ' + TRANS(YEAR(m.exeDate)) ;
  + '.' + TRANS(MONTH(m.exeDate)) ;
  + '.' + TRANS(DAY(m.exeDate))

Today it would come out as Build: 2017.1.22

This may be too simple for your purposes, but its advantage is you don't have to remember to change it each time you build.

Steve


这篇关于在VFP 9应用程序启动屏幕上显示内部版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 01:12