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