home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / pascal / 5180 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  856 b 

  1. From: Neal.Sanche@ttlg.UUCP (Neal Sanche)
  2. Sender: postmaster@ttlg.UUCP
  3. Path: sparky!uunet!gatech!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!alberta!ttlg!postmaster
  4. Newsgroups: comp.lang.pascal
  5. Subject: Procedural Variables
  6. Message-ID: <715488005.1@ttlg.ttlg.UUCP>
  7. Date: 02 Sep 92  12:48:04 mst
  8. Lines: 24
  9.  
  10. CR> Program TestProc;
  11.  
  12. CR> Uses Crt;
  13.  
  14. CR> Var Proc: procedure;
  15.  
  16. CR> Begin
  17. CR>   Proc:= ClrScr;
  18. CR>   Proc;
  19. CR> End;
  20.  
  21. CR> This works. However, if I try Proc:='name_of_my_procedure'
  22. CR> or to try and assign a
  23. CR> string varibale to it I get a type mismatch.
  24.  
  25. You've got to define what parameters your function takes. You
  26. were lucky with ClrSrc because it takes no parameters. The TP
  27. manuals show this quite clearly.
  28.  
  29. -Neal
  30.  
  31.  * OLX 2.1 TD * A towel has immense psychological value.
  32.  
  33.  * Origin: Paradigm BBS: A programmer's paradise. (42:100/11)
  34.