Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Capture Version Property of Project? (VB6)

    In VB6 with a project open, if you go to Project --> Project Properties then under the Make tab, this exposes a place where you can put the version (Major, Minor, and Revision).

    I have it set to Auto Increment, and I was wondering if it was possible to capture this value to append it to the title bar of my main form?

  2. #2
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Capture Version Property of Project? (VB6)

    Mike, all of the stuff in the Project Properties dialog box are in the App object. Just type "app." and auto-complete will help you with the rest. In your case, you want <pre>Form1.Caption = Form1.Caption & ", version " & _
    App.Major & "." & App.Minor & "." & App.Revision</pre>

    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Capture Version Property of Project? (VB6)

    That worked perfectly, Sam, thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •