TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: SANDER SMEENK
from: HANS LUNSING
date: 1996-05-09 19:06:00
subject: Units?

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)

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™.