Can't run a unit

~
~
I am reciving an error (cannot run a unit)when i run any unit.
~
~
please help me
~
~

Comments

  • : ~
    : ~
    : 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]
  • 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
  • [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.

Howdy, Stranger!

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

Categories