Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!paperboy!hsdndev!cmcl2!adm!news From: 209507097@ucis.vill.edu (MCREE, JAMES F) Newsgroups: comp.lang.pascal Subject: Pointers to procedures Message-ID: <26486@adm.brl.mil> Date: 8 Apr 91 19:02:34 GMT Sender: news@adm.brl.mil Lines: 36 I been following the thread of calling procedures by pointers with a lot of interest recently. Mostly because I have an application that is just begging for a solution like that. However, the discussion and samples that I have seen (including those in the manual) deal with hardcoding procedure names into the program. (ie. Proc[i] := Do_It_Procedure) Is there a way of doing what my syntactically incorrect program below is trying to do? Program Call_A_Variable_Procedure (Input,Output); . Var Proc_Name : Procedure; . . Assorted necessary delcarations . Begin . . Assorted code statements . . Write ('Enter the name of a procedure to run: '); Readln (Proc_Name); Proc_Name; . . End. This is an example of a user-specified call to a procedure. The user specifies the procedure directly though. Can this be done? Happy Coding!!! Jim.