On 2013-03-28 12:00, Xiangrong Fang wrote:
> WriteLn('COMPILED: ' + {$I %DATE%});
>
> i.e. the $I above returned a string without trying to parse it.
It just returns a string.... string + string = string. Hence the
Writeln() statements works. As I said in another reply. The compiler has
some special cases regarding %xxx% format, and for everything else it
returns an environment variable as a string.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus