Automatically incrementing version counter/variable


Closed Thread
Results 1 to 5 of 5
  1. #1
    skimask's Avatar
    skimask Guest

    Default Automatically incrementing version counter/variable

    A variable readable at run time that automatically increments every time PBP is invoked (a BYTE for some, a LONG for a few of us).
    PBP might have an .ini file that would match the .pbp filename and keep various PBP parameters in there along with the version count.
    Then at run time, something like this happens:

    Code:
    version_variable var WORD 'or BYTE or LONG or whatever
    
    main:
    version_variable = pbpversion
    lcdout "Current Version is : " , DEC5 version_variable
    end
    If nothing else, it might be kinda fun to see how many times a guy compiles a certain program just to see how many times you program a particular PIC.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Something like that could be done in MPLAB with custom build option or with Version control option.

    I've never used it, and still don't see any advantage if using it though.

    Save As, and edit the program header.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    http://www.astrosurf.com/soubie/serialisateur.htm does just that.

    Regards,

    Anand

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink some more files to download ...

    Hi, Anand

    Also, Do not forget to add :

    VCL50.BPL
    VCLX50.BPL

    in the utility Directory ...

    those can be found on the WEB ...

    Then just add INCLUDE " C\...\Serinfo.bas" to the top of the BASIC file :

    Code:
    
        ' Serial for PBP (c) 2002 Robert Soubie
        ' Type source code or comment lines hereunder,
        ' Syntax should be valid since no control is done;
        ' This window may be empty, or source code may be
        ' pasted into it...
    
    
     
        ' Software version information:
        MajorVersion      CON 1
        MinorVersion      CON 0
    
        ' Compilation date information:
        CompilationYear   CON 2008
        CompilationMonth  CON 6
        CompilationDay    CON 15
        CompilationHour   CON 11
        CompilationMinute CON 4
    
        ' Serial number information:
        SerialNumber      CON 2
    Here it is ...

    Alain
    Last edited by Acetronics2; - 15th June 2008 at 10:08.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Right, thanks, Alan.

    The version of PBP Serialisateur I had downloaded did contain a file VCLSMP50.BPL in the zip that seemed to achieve the same.

    Regards,

    Anand

Similar Threads

  1. Version Control
    By btaylor in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 16th October 2011, 17:12
  2. New version of Pic BASIC Pro released
    By Demon in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th March 2010, 15:41
  3. version numbering
    By rondo2 in forum General
    Replies: 1
    Last Post: - 13th January 2010, 00:59
  4. current version of MPASM
    By krohtech in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th January 2008, 22:11
  5. DT-ints-18 - new version
    By dip1 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 10th October 2007, 20:09

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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