home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7653 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  2.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!think.com!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!ericom!etlxd10h!etljmme
  2. From: etljmme@etlxd30.ericsson.se (Jim)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Describe that Turbo Pascal function...
  5. Message-ID: <1992Dec23.121622.3975@ericsson.se>
  6. Date: 23 Dec 92 12:16:22 GMT
  7. References: <HEMSTREE.92Dec22085210@mddchh.mddchh.fc.hp.com>
  8. Sender: news@ericsson.se
  9. Reply-To: etljmme@etlxd30.ericsson.se
  10. Organization: Ericsson Telecom AB
  11. Lines: 43
  12. Nntp-Posting-Host: etlxd10h.ericsson.se
  13.  
  14. In article 92Dec22085210@mddchh.mddchh.fc.hp.com, hemstree@mddchh.fc.hp.com (Charles H. Hemstreet IV) writes:
  15. >
  16. >I am in the process of porting a turbo pascal (PC) program to HP-UX
  17. >Pascal.  What does the function ... do in Turbo pascal?
  18. >
  19. >str
  20.  
  21. Convert a value to a string, eg: STR(a,b) where a="123" and b is an integer var.
  22.  
  23. >pos
  24.  
  25. Returns the position of a substring in a string, eg: POS("A","ABC")=1
  26.  
  27. >upshift
  28.  
  29. You mean UPCASE?  If so, it shifts a character to uppercase, eg: upcase("a")="A"
  30.  
  31. >copy
  32.  
  33. copy a substring from a string, eg: copy("ABCD",2,2) = "BC"
  34.  
  35. >val
  36.  
  37. opposite of str, converts string containing digits into value in a variable.
  38.  
  39. >length
  40.  
  41. returns the length of a string, eg: length("ABCD") = 4
  42.  
  43. >
  44. >Thank you for any help,
  45. >--
  46. >Charles
  47. >
  48. >-------------------------------------------------------------------------------
  49. >Charles H. Hemstreet IV                                 ********  h    *******
  50. >Hewlett Packard                    /\          /\      *******   h        *****
  51. >3404 East Harmony Rd., MS110    /\/  \  /\    /  \     *****    hhhh pppp  ****
  52. >Ft. Collins, CO  80525       /\/  \   \/  \/\/    \    ****    h  h p  p   ****
  53. >(303) 229-4471              /  \   \  /   /  \     \   ****   h  h pppp   *****
  54. >(303) 229-3168  (fax)      /    \   \    /    \     \  *****      p     *******
  55. >hemstree@mddchh.fc.hp.com     Mech. Design Division     *******  p    ********
  56. >-------------------------------------------------------------------------------
  57.