<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
It works, Thx<br>
<pre class="moz-signature" cols="72">mvg
Frans van Leeuwen
M 06-51695390
</pre>
<div class="moz-cite-prefix">Op 12-7-2018 om 13:43 schreef Rik van
Kekem via Lazarus:<br>
</div>
<blockquote type="cite"
cite="mid:28465f77-3135-bdc6-b058-4e06399ae5ca@graficalc.nl">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
On 12-07-2018 12:51, frans via Lazarus wrote:<br>
<blockquote type="cite"
cite="mid:14fd8a57-950d-5d37-1703-b44bcc6abebd@quicknet.nl">I
use Lazarus 1.6.4 (temporarely) and lazarus 1.8.4 on Windows 10.
<br>
I need to use the LCL version but I can't get it to work
properly. <br>
I use the following code: <br>
{$IFDEF LCL_FULLVERSION > 1080000} <br>
{$ELSE} <br>
{$ENDIF} <br>
Compiling the program give me the message Warning include
environment "LCL_FULLVERSION" not found in environment. But this
is the way I fount on the lazarus forum. <br>
What am I doing wrong? And where can I find a list of all
Lazarus environment variables? <br>
<br>
</blockquote>
Where did you find this on the forum?<br>
Because you shouldn't use {$IFDEF } but {$IF } (because you are
using an <span style="color: rgb(0, 0, 0); font-family:
"Times New Roman"; font-size: medium; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration-style: initial;
text-decoration-color: initial; display: inline !important;
float: none;">expression<span>)</span></span><br>
<br>
So:<br>
{$IF LCL_FULLVERSION > 1080000} <br>
{$ELSE} <br>
{$ENDIF} <br>
<br>
If you use {$IFDEF it will check if "LCL_FULLVERSION > 1080000"
is defined, which it isn't.<br>
<br>
Also see <a class="moz-txt-link-freetext"
href="http://www.math.uni-leipzig.de/pool/tuts/FreePascal/prog/node4.html"
moz-do-not-send="true">http://www.math.uni-leipzig.de/pool/tuts/FreePascal/prog/node4.html</a><br>
<br>
B.T.W. You need to include "uses lclversion" because
LCL_FULLVERSION is declared there (otherwise you get a ansistring
error message).<br>
<br>
Some other constants: <a class="moz-txt-link-freetext"
href="http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index-2.html"
moz-do-not-send="true">http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index-2.html</a><br>
<br>
Grtz,<br>
Rik<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 18px;"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virusvrij. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avg.com</a> </td>
</tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>