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)
|