Thanks! Exactly what I needed. Is exists similar trick for get widgetset type (QT, GTK)?<br><br><div class="gmail_quote">2011/5/27 Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Fri, 27 May 2011 13:18:11 +0200<br>
Krzysztof <<a href="mailto:dibo20@wp.pl">dibo20@wp.pl</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I need friendly name of OS and processor type at runtime. I need this for<br>
> "user-agent" header in http client. Some kind of "Linux x86_64 Ubuntu/11.04"<br>
> ("Linux x86_64" should be enough). "GetEnvironmentVariable" function does<br>
> not return anything interesting. I can build this string using compiler<br>
> defines but there is a lot of targets CPU and OS and maybe free pascal have<br>
> some functions? How free pascal build string name of output executable when<br>
> I set $(TargetCPU) in lazarus project options?<br>
<br>
</div></div>Lazarus $(TargetCPU) is lowerCase({$I %FPCTARGETCPU%})<br>
<br>
TargetOS is lowerCase({$I %FPCTARGETOS%})<br>
<font color="#888888"><br>
<br>
Mattias<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
<br>
</div></div></blockquote></div><br>