home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5334 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.4 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!gatech!nntp.msstate.edu!Ra.MsState.Edu!jdz1
  2. From: jdz1@Ra.MsState.Edu (John D. Zitterkopf)
  3. Newsgroups: comp.lang.pascal
  4. Subject: VAL: Replacement for a LongInt?
  5. Keywords: Val(
  6. Message-ID: <1992Sep11.163101.25136@ra.msstate.edu>
  7. Date: 11 Sep 92 16:31:01 GMT
  8. Sender: jdz1@ra.msstate.edu
  9. Organization: Mississippi State University
  10. Lines: 20
  11. Nntp-Posting-Host: ra.msstate.edu
  12.  
  13. Hello,
  14.     I'm writing a program that stores Telephone #s and attempting to use
  15. a LongInt to save space rather that a string. The problem is that I use a 
  16. string to retrieve the value do that the phone # can be type as (xxx)yyy-zzzz.
  17. The function I have developed works fine except that the VAL function I use
  18. seems to tell my "problem" corrector that the last digit is an invalid char for
  19. a number. I am convinced that the problem stems from the fact that the built-in
  20. VAL procedure was developed for simple real/int values, not unsigned, LongInt
  21. that I need. Has anyone run into this problem before? Does anyone have a 
  22. replacement or mod? 
  23.  
  24. Please contact me by E-mail,
  25. Thanks!
  26. John
  27.  
  28. --
  29.  ____________   _------_  |||IBM & |      EE majors Do it Best 8-)
  30.   --------\\ ] ~-______-~ |||Atari |~~~~~~~~~John D. Zitterkopf~~~~~~~~~~~~~
  31.      (~~~~~\\|_(__ ~~    / | \Rules!jdz1@ra.MsState.edu  jdz1@MsState.bitnet
  32.       \______| (        /  |  \    |AOL: zitt@aol.com  jdz1@isis.MsState.edu 
  33.