home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!news.cs.indiana.edu!umn.edu!doug.cae.wisc.edu!castlab.engr.wisc.edu!chris
- From: chris@castlab.engr.wisc.edu (Christian Rohrmeier)
- Subject: Procedural Variables
- Organization: U of Wisconsin-Madison College of Engineering
- Date: 31 Aug 92 14:50:28 CDT
- Message-ID: <1992Aug31.145029.16564@doug.cae.wisc.edu>
- Lines: 26
-
- Thanks to all those who sent me replies to my question about dynamically calling
- a procedure via a variable.
-
- It seems that is comes down to procedural variables.
-
- The problem is, I can't seem to assign a variable to the proc. variable!
-
- Here sample code given to me by Kjell:
-
- Program TestProc;
-
- Uses Crt;
-
- Var Proc: procedure;
-
- Begin
- Proc:= ClrScr;
- Proc;
- End;
-
- This works. However, if I try Proc:='name_of_my_procedure' or to try and assign a
- string varibale to it I get a type mismatch.
-
- Any ideas from the net?
-
- -Chris
-