home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt.edu!bjorh1
- From: bjorh1+@pitt.edu (Reidar Bjorhovde)
- Newsgroups: comp.lang.pascal
- Subject: Standard pascal question...
- Message-ID: <3763@blue.cis.pitt.edu.UUCP>
- Date: 25 Jul 92 21:16:43 GMT
- Sender: news+@pitt.edu
- Organization: University of Pittsburgh
- Lines: 22
-
- Hi. I am writing a program in standard pascal and I need to use a
- function like the 'copy' function in Turbo Pascal, where a substring is
- returned from a string.
-
- e.g.
-
- this_string := 'This is a string';
- new_string := copy(this_string, 1,5);
- writeln(output, new_string);
-
- and this would return 'This '.
-
- Is there a function in Standard Pascal that can do this?
-
- Thanks for your help.
-
-
- --
- Ian D. Bjorhovde
- bjorh1+@pitt.edu
- Department of Materials Science & Engineering
- University of Pittsburgh
-