home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / pascal / 4554 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  799 b 

  1. Path: sparky!uunet!gatech!pitt.edu!bjorh1
  2. From: bjorh1+@pitt.edu (Reidar Bjorhovde)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Standard pascal question...
  5. Message-ID: <3763@blue.cis.pitt.edu.UUCP>
  6. Date: 25 Jul 92 21:16:43 GMT
  7. Sender: news+@pitt.edu
  8. Organization: University of Pittsburgh
  9. Lines: 22
  10.  
  11. Hi.  I am writing a program in standard pascal and I need to use a
  12. function like the 'copy' function in Turbo Pascal, where a substring is
  13. returned from a string.
  14.  
  15.     e.g. 
  16.  
  17.         this_string := 'This is a string';
  18.         new_string := copy(this_string, 1,5);
  19.         writeln(output, new_string);
  20.  
  21.     and this would return 'This '.
  22.  
  23. Is there a function in Standard Pascal that can do this?
  24.  
  25. Thanks for your help.
  26.  
  27.  
  28. -- 
  29. Ian D. Bjorhovde
  30. bjorh1+@pitt.edu
  31. Department of Materials Science & Engineering
  32. University of Pittsburgh
  33.