<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
Try running the following program and be amazed of the output:<br>
<br>
<blockquote><tt>Program Test;</tt><tt><br>
</tt><tt><br>
</tt><tt>Uses Sysutils;</tt><tt><br>
</tt><tt><br>
</tt><tt>Begin</tt><tt><br>
</tt><tt> WriteLn(StrToInt('x1'));</tt><tt><br>
</tt><tt> WriteLn(StrToInt('x0'));</tt><tt><br>
</tt><tt> WriteLn(StrToInt('xabcdef'));</tt><tt><br>
</tt><tt>End.</tt><tt><br>
</tt></blockquote>
<br>
Apparently the StrToInt function interprets strings starting with an
`x` as hexadecimal numbers? This behaviour seems rather strange to
me (strings starting with 0x would be a bit more understandable, but
then again, we're programming pascal here, not C) and it is not
mentioned in the documentation. What do I do with it?<br>
<br>
A- File a bug concerning incomplete documentation?<br>
B- File a bug concerning incorrect behaviour of StrToInt()?<br>
C- Do nothing and live with it.<br>
D- ....?<br>
<br>
<br>
Additional information<br>
Compiler Version: 2.6.0<br>
<pre class="moz-signature" cols="72">--
Ewald
</pre>
</body>
</html>