Keeping track of VB source code builds
Keeping track of source code builds in VB can be easy, if you use the Version Numbering feature provided in EXE creations. Click on the options button when creating an EXE file. Then turn on the "Auto Increment" checkbox.
Versioning supports a three-segment version number: Major, Minor and Revision. The Auto Increment feature, if selected, will automatically increase the Revision number by one each time you run the Make Project command for this project.
Typically, build information will go on an About form. Just add a label called, "lblVersion" and add the following code to your form:
lblVersion.Caption = "Version: " & App.Major & "." & App.Minor & "."
& App.Revision
If my Major version number is 2, the Minor number is 1 and the Revision is 12, the label will display: "Version: 2.1.12"
文章来源于领测软件测试网 https://www.ltesting.net/
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073