home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / pascal / 4566 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.2 KB  |  33 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!nntpd2.cxo.dec.com!nntpd.lkg.dec.com!hiyall.enet.dec.com!reagan
  3. From: reagan@hiyall.enet.dec.com (John R. Reagan)
  4. Subject: Re: Standard pascal question...
  5. Message-ID: <1992Jul27.133035.2499@nntpd.lkg.dec.com>
  6. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  7. Organization: Digital Equipment Corporation
  8. References:   <3763@blue.cis.pitt.edu.UUCP>
  9. Date: Mon, 27 Jul 1992 14:28:02 GMT
  10. Lines: 21
  11.  
  12.  
  13. In article <3763@blue.cis.pitt.edu.UUCP>, bjorh1+@pitt.edu (Reidar Bjorhovde) writes...
  14. >Hi.  I am writing a program in standard pascal and I need to use a
  15. >function like the 'copy' function in Turbo Pascal, where a substring is
  16. >returned from a string.
  17. >Is there a function in Standard Pascal that can do this?
  18. You didn't say which standard you are concerned with?
  19.  
  20. For the 1983 unextended Pascal (aka "classic" Pascal), no there is not a
  21. builtin routine that does what you want.  For the 1989 Extended Pascal
  22. standard, see the SUBSTR ("substring") predeclared routine.
  23.  
  24. ---
  25. John Reagan
  26. Digital Equipment Corporation
  27. reagan@hiyall.enet.dec.com
  28. Disclaimer:  The opinions and statements expressed by me are not
  29.              necessarily those of Digital Equipment Corporation.
  30. ---
  31.