Search code examples
delphitmstms-web-core

How can I see my version of TMS WEB Core during run-time?


This is a strange question and I don't know if it's possible or not, but I want to list on my website's About page that it's built using TMS WEB Core and then I want the version of TMS WEB Core to be listed as well, but I don't want that version to be static. I'd like to somehow dynamically get the version that was used to build it with.

Is there a way to get the TMS WEB Core version dynamically during run-time?


I can see the version listed in two places in my IDE.

  1. When the IDE starts up

RAD STUIOD 12.1 Startup Screen

  1. In the Tools > Options section

Delphi TMS WEB Core Tools > Options


So hopefully I'm able to somehow get the version during run-time also 🥺


Solution

  • Okay.

    So I just found that somewhere, there's a WEBCOREVERSION constant variable defined that gives you the version of TMS WEB Core.

    My IDE thinks it's an error and says:

    E2003 "Undeclared identifier: 'WEBCOREVERSION'

    E2003 "Undeclared identifier: 'WEBCOREVERSION'

    But it compiles and works without any issues. It returns the TMS WEB Core version in run-time. Exactly what I wanted and needed.