home *** CD-ROM | disk | FTP | other *** search
- From: Neal.Sanche@ttlg.UUCP (Neal Sanche)
- Sender: postmaster@ttlg.UUCP
- Path: sparky!uunet!gatech!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!alberta!ttlg!postmaster
- Newsgroups: comp.lang.pascal
- Subject: Procedural Variables
- Message-ID: <715488005.1@ttlg.ttlg.UUCP>
- Date: 02 Sep 92 12:48:04 mst
- Lines: 24
-
- CR> Program TestProc;
-
- CR> Uses Crt;
-
- CR> Var Proc: procedure;
-
- CR> Begin
- CR> Proc:= ClrScr;
- CR> Proc;
- CR> End;
-
- CR> This works. However, if I try Proc:='name_of_my_procedure'
- CR> or to try and assign a
- CR> string varibale to it I get a type mismatch.
-
- You've got to define what parameters your function takes. You
- were lucky with ClrSrc because it takes no parameters. The TP
- manuals show this quite clearly.
-
- -Neal
-
- * OLX 2.1 TD * A towel has immense psychological value.
-
- * Origin: Paradigm BBS: A programmer's paradise. (42:100/11)
-