Just do it like this<br>
<br>
Unit unitname<br>
<br>
interface<br>
variablename:integer;<br>
<br>
implementation<br>
end.<br>
<br>
<br>
and now REMOVE the variable declaration from your main program. If you main program now does a <br>
<br>
USES unitname <br>
<br>
you can just use the variables the same way as you would when they were in your main. You can also change them from your main and all. Just be sure to declare the variable ONLY in your unit, and not both in your unit and the main program.<br>
<br>
And oh, we could tell that you are not a cutting-edge programmer, for else you wouldn't have crammed over 64k of code in your main

<br>