Hello Sander
On Thursday, 2 May 1996 15:11:38, you wrote to All:
SS> I make a program:
SS> $COMPILE UNIT "JUST-TRY.PBU"
SS> SUB Center(Text$, Row%)
[some text omitted]
SS> Then I do:
SS> $LINK "C:\PB32\UNITS\JUST-TRY.PBU"
SS> DECLARE SUB Center(Text$, Row%)
SS> CALL Center("Just Try Units", 3)
SS> It sais at the last line: Undefined SUB/FUNCTION reference.
SS> Howcome?? I Declared the SUB, linked the Unit, what else
SS> should I do???
You should make Center a public procedure by adding the keyword
PUBLIC to the SUB command:
SUB Center(Text$, Row%) PUBLIC
The default is PRIVATE.
Friendly greeting you,
Hans Lunsing, Fido : 2:281/607.214, 2:282/610.12
Internet : jlunsing@doge.nl
--- Terminate 4.00/Pro
# Origin: BBS De Lauwers For BASIC Programmers! ++3159468840
(119:3102/101.12)
---------------
* Origin: United Bbs Systems Europe MailGate to -> Fido USA (2:2802/337.0)
|