Article View: comp.lang.modula2
Article #1896Re: Character Assign/Read to Cardinal
From: Bill Seurer
Date: Fri, 05 Apr 1991 17:08
Date: Fri, 05 Apr 1991 17:08
11 lines
1014 bytes
1014 bytes
No, that shouldn't be acceptable. Sounds like he is using JPI. It does really strange things if you try to enter a non-numeric character when it is reading a number. The solution is to read everything as character strings and then use the string conversion functions to convert to whatever it is you expected to read. They usually have some sort of error flag so you can detect when bad data was typed. - Bill Seurer IBM: seurer@rchland Prodigy: CNSX71A Rochester, MN Internet: seurer@rchland.vnet.ibm.com
Technical Details
Message-ID:
<Ebz_wPQ91EAfEUU5xD@rchland.ibm.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!panews.awdpa.ibm.com!rchland.ibm.com!seurer+References:
<111639@unix.cis.pitt.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!panews.awdpa.ibm.com!rchland.ibm.com!seurer+ From: seurer+@rchland.ibm.com (Bill Seurer) Newsgroups: comp.lang.modula2 Subject: Re: Character Assign/Read to Cardinal Message-ID: <Ebz_wPQ91EAfEUU5xD@rchland.ibm.com> Date: 5 Apr 91 17:08:43 GMT References: <111639@unix.cis.pitt.edu> Organization: IBM Rochester, Mn Lines: 11 In-Reply-To: <111639@unix.cis.pitt.edu>