How to get Navision Version

arindamarindam Member Posts: 176
Hi all,

How to get Navision version programetically ? I mean if I am using Nav 4.0 SP1 then I should get this programetically.

If there any table that navision stores the version number or any commnad by which I can get the version number?

Please advice.

Thanks
Arindam

Answers

  • BeliasBelias Member Posts: 2,998
    Version := codeunit1.applicationversion;
    

    Check the the applicationversion function in codeunit 1 and you'll find how does it works (Really hard to understand :mrgreen::mrgreen: )
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • David_SingletonDavid_Singleton Member Posts: 5,479
    edited 2008-08-01
    arindam wrote:
    Hi all,

    How to get Navision version programetically ? I mean if I am using Nav 4.0 SP1 then I should get this programetically.

    If there any table that navision stores the version number or any commnad by which I can get the version number?

    Please advice.

    Thanks
    Arindam

    can you give a logical reason why you would want this? Is it for an addon?

    Second, do you mean the EXE or the application?
    David Singleton
  • BeliasBelias Member Posts: 2,998
    Second, do you mean the EXE or the application?
    Right...the method I wrote before returns the application version...(or at least CU1 version)...
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • TomasTomas Member Posts: 420
    Belias wrote:
    Version := codeunit1.applicationversion;
    

    Check the the applicationversion function in codeunit 1 and you'll find how does it works (Really hard to understand :mrgreen::mrgreen: )

    :) should we change this one manually when applying any Microsoft hotfixes?
  • David_SingletonDavid_Singleton Member Posts: 5,479
    Tomas wrote:
    Belias wrote:
    Version := codeunit1.applicationversion;
    

    Check the the applicationversion function in codeunit 1 and you'll find how does it works (Really hard to understand :mrgreen::mrgreen: )

    :) should we change this one manually when applying any Microsoft hotfixes?

    Yes.
    David Singleton
  • BeliasBelias Member Posts: 2,998
    Never done before, but...for hotfixes, shouldn't we change "ApplicationBuild" Function?
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • arindamarindam Member Posts: 176
    Tomas wrote:
    Belias wrote:
    Version := codeunit1.applicationversion;
    

    Check the the applicationversion function in codeunit 1 and you'll find how does it works (Really hard to understand :mrgreen::mrgreen: )

    :) should we change this one manually when applying any Microsoft hotfixes?

    Yes.


    This give me my desire result. Thank you.

    I wanted to get the Navision version number to club with my own apoplication version number and display at my application form. I am not manipulating Navision version number.

    Thanks
    Arindam
Sign In or Register to comment.