{with}<br>
var<br>
s:string; <br>
x:real;<br>
n:integer;<br>
<br>
.....<br>
s := edit1.text;<br>
x := strtofloat(s);<br>
n := round(x);<br>
<br>
{to show result}<br>
edit1.text := floattostr(n);<br>
{This works whether or not text is a real number}<br>...
When I try to install a third party component in Delphi 3 (no source code available, only the *.dcu file) I get a compille error: cannot find *.pas. Has anyone run into this? What to do?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.