home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6857 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  850 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!mp.cs.niu.edu!uxa.ecn.bgu.edu!psuvax1!psuvm!f0o
  2. Organization: Penn State University
  3. Date: Mon, 23 Nov 1992 16:42:14 EST
  4. From: <F0O@psuvm.psu.edu>
  5. Message-ID: <92328.164214F0O@psuvm.psu.edu>
  6. Newsgroups: comp.lang.pascal
  7. Subject: Typecasting a Pchar variable
  8. Lines: 10
  9.  
  10. Hi everyone!
  11.  
  12.    I'm using TPW 1.0 and I have a PChar variable which represents an integer
  13. number.  I'd like to convert the PChar string to it's integer representation.
  14. Now, TPW has the Val() procedure, but this means I'd have to convert the
  15. PChar string into a Pascal style string before using Val().  Is there a
  16. way to typecast my PChar string into an integer without having to convert
  17. it to a Pascal style string first?
  18.  
  19.                                                                  [Tim]
  20.