Can't run a unit - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Can't run a unit

sal_jimsal_jim Posts: 3Member
~
~
I am reciving an error (cannot run a unit)when i run any unit.
~
~
please help me
~
~

Comments

  • zibadianzibadian Posts: 6,349Member
    : ~
    : ~
    : I am reciving an error (cannot run a unit)when i run any unit.
    : ~
    : ~
    : please help me
    : ~
    : ~
    :
    Based on the error your you try to run a unit instead of a program. Try calling a unit from a program like this:
    [code]
    program MyProg;

    uses
    MyUnit;

    begin
    MyFunction;
    end.
    [/code]
  • jtm62jtm62 Posts: 8Member
    I'm having the same problem with my program for the apple 2.
    I can get my unit to compile but cannot call to it in my main program.
    sorry I couldn't help. lol
    Josh
  • roland48roland48 Posts: 23Member
    [b][red]This message was edited by roland48 at 2003-5-3 11:46:24[/red][/b][hr]
    : ~
    : ~
    : I am reciving an error (cannot run a unit)when i run any unit.
    : ~
    : ~
    : please help me
    : ~
    : ~
    :
    There ist nothing to help. You cannot run any unit, you can only
    compile it to disk and use it as TPU-file in your program.
    (switch: kompile / destination disk in your IDE)
    If you have some code (between begin..end. ), so this code will be
    executed only by using the unit.


Sign In or Register to comment.