Solved

Set Program Version Number in VB6

Posted on 2007-12-03
2
1,100 Views
Last Modified: 2008-02-01
How do I version my program in vb6.

I have several locations that use this program and i can't keep track of who got what versions.

I would like to be able to right click on the executable or something and see what version of the program was last installed.
0
Comment
Question by:Fraser_Admin
2 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 500 total points
ID: 20395973
Go into Project menu, properties, select the "Make" tab.  You can enter Major, Minor and Revision version numbers here.

You can compile and right click and get version that way, or add it to a label on an about form (or main form caption) using code like:

lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 20395992
In VB6, mouse to project file, then right-click:Properties, Make tab, set your version number there. Consider checking the 'Auto Incriment' check box to have this number automatically update with each .exe

Then make your exe.

Then in Windows Explorer, find your recently-made exe file, and right-click:Properties, and you'll see the version number from the first line of this comment.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now