Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Platform Version Global Variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Platform Version Global Variable

    Greetings Support Team,

    Several months ago I had written an indicator that pulled the current NT8 platform version (and architecture if I recall) from a variable somewhere in NinjaScript. This was to assess whether the script was compatible with the currently running version. I have since lost that reference. Could you please help me out? There are other options through C# libraries that will pull the current application version but using other methods makes things a bit 'messy' for my current application.

    Thank you in advance!

    #2
    Hi CDXTrader, thanks for your question.

    We don't have any documented methods for this. I was able to get the version like this:

    Print(Application.ResourceAssembly.FullName.Split( ',')[1]);

    Please let me know if I can assist any further.

    Comment


      #3
      Hi Chris,

      Thanks for the reply. Your solution should work for me. I was pretty sure there was a global variable that provided some more details about the platform but perhaps I'm mistaking. If there is, maybe you could point me in the direction of the proper class. I know this would be undocumented/supported. If not, no worries.

      Cheers

      Comment


        #4
        Hi CDXTrader, thanks for your reply.

        I looked through the undocumented properties but I could not find anything, unfortunately.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        93 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        123 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X