Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Can't run a unit Posted by sal_jim on 12 Apr 2003 at 6:06 PM
~
~
I am reciving an error (cannot run a unit)when i run any unit.
~
~
please help me
~
~
Report
Re: Can't run a unit Posted by zibadian on 12 Apr 2003 at 7:57 PM
: ~
: ~
: 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:
program MyProg;

uses
  MyUnit;

begin
  MyFunction;
end.

Report
Re: Can't run a unit Posted by jtm62 on 17 Apr 2003 at 8:33 AM
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
Report
Re: Can't run a unit Posted by roland48 on 3 May 2003 at 11:41 AM
This message was edited by roland48 at 2003-5-3 11:46:24

: ~
: ~
: 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.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.