Just a sample of the Echomail archive
Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.
|    PASCAL    |    Pascal programming language discussions    |    592 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 415 of 592    |
|    Vince Coen to Dan Richter    |
|    Lazarus and FPC    |
|    12 Jun 18 13:55:33    |
      Hello Dan!              Monday June 11 2018 19:53, you wrote to All:               > Hi All,               > I know there aren't many Pascal programmers around anymore, but I        > thought I'd ask a question here, as I've been unable to find any info        > on the internet.               > I've been writing some programs in Pascal, using Lazarus 1.8.2 with        > FPC 3.0.4, running under Ubuntu 18.04.               > Is there a way to use the Lazarus version number set up in the Project        > Options -=> Version Info, as a variable in the code?               > Right now, I've just been changing the version number in both Lazarus,        > and as a CONST in my programs. There have been a couple times, where I        > forget one of them, and it causes confusion, at least on my part... :)               > Thanks for any assistance.                     If you use the configure;make build facilty you can create version, build       numbering within and just change the vars in configure.in before running the       build script.              AS for the info in a program is this for pickup during running or at the build       stage. If the later that is simple enough even if you issue a export       version-var before running in a script.              If the former you will need to check the fpc docs to see if there is a        function       for it or write your own or again use an exported vars for your program to       pick up.              I do use the developed program version for displays and the printed reports        but       the make script does make use of the compiler version sometimes but not often       as I am more concerned with the platform.                     Vince              --- Mageia Linux v5.1/Mbse v1.0.7.6/GoldED+/LNX 1.1.501-b20150715        * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca