home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8542 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  1.9 KB

  1. Path: sparky!uunet!usc!rpi!ghost.dsi.unimi.it!insa-lyon.fr!univ-lyon1.fr!pc110-02.insa-lyon.fr!ppollet
  2. From: ppollet@cismibm.univ-lyon1.fr (Patrick POLLET)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: STRING AND INTEGER CONVERSION (Mac AND PC) - HELP
  5. Date: Tue, 26 Jan 1993 08:25:59 GMT
  6. Organization: INSA  CENTRE INFORMATIQUE DU 1er CYCLE
  7. Lines: 37
  8. Message-ID: <ppollet.177.728036759@cismibm.univ-lyon1.fr>
  9. References: <1993Jan25.202522.15666@massey.ac.nz>
  10. NNTP-Posting-Host: pc110-02.insa-lyon.fr
  11.  
  12. In article <1993Jan25.202522.15666@massey.ac.nz> RPatel@massey.ac.nz (R. Patel) writes:
  13. >From: RPatel@massey.ac.nz (R. Patel)
  14. >Subject: STRING AND INTEGER CONVERSION (Mac AND PC) - HELP
  15. >Date: 25 Jan 93 20:25:22 GMT
  16.  
  17.  
  18. >G'day,
  19.  
  20. >I tried posting this before and it never showed up so please bear with
  21. >me if it did appear.
  22.  
  23. >Anyway I've got a Pascal prog. on the Mac which uses the SANE library
  24. >functions int2str and str2int (ie converts a string to integer and vice
  25. >versa).
  26.  
  27. >I'm trying to get the program running on the PC under TPascal but I
  28. >don't know what library to use and which functions to call that have the
  29. >same operations (ie converting strings and integers etc).
  30.  
  31. [ .....]
  32.  
  33.   int2str should be changed to str()
  34.   str2int should be changed to val()
  35.   Caution: The parameters are differents and Str() and val() are PROCEDURES
  36. whereas int2str() and str2int() are functions (I think It has been years
  37. since I used Think Pascal)     RTFM. please
  38. ppollet@cismibm.univ-lyon1.fr (Patrick POLLET)
  39. --------------------------------------------------------
  40. Dr Patrick L.Pollet
  41. Institut National des Sciences Appliquees
  42. Centre Informatique du 1er Cycle  Bat 110
  43. 20 Avenue A.Einstein
  44. 69621 Villeurbanne Cedex France
  45. --------------------------------------------------------
  46. Phone: 72 43 83 80 -   la premiere erreur c'est
  47. Fax  : 72 43 85 33 -   de se lever le matin  ... GASTON
  48. -------------------------------------------------------
  49.