TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: SANDER SMEENK
date: 1996-05-02 15:11:00
subject: Units?

Hello All,
I make a program:
'---
$COMPILE UNIT "JUST-TRY.PBU"
SUB Center(Text$, Row%)
    IF Text$ = "" THEN EXIT SUB
    IF Row%  25 THEN EXIT SUB
    LOCATE Row%, 40 - LEN(Text$) / 2: PRINT Text$
END SUB
'---
Compile, and yes, a Unit exists.
Then I do:
'---
$LINK "C:\PB32\UNITS\JUST-TRY.PBU"
DECLARE SUB Center(Text$, Row%)
CALL Center("Just Try Units", 3)
'---
It sais at the last line:
Undefined SUB/FUNCTION reference.
Howcome?? I Declared the SUB, linked the Unit, what else should I do???
Mzzl,
sander@taf.idn.nl
... Power corrupts, but we still need electricity.
--- GoldED/386 2.50 UNREG
---------------
* Origin: The Second Farm - 28k8 - 033-4943146 (2:2801/507)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.