Path: utzoo!attcan!uunet!cs.utexas.edu!usc!apple!apple.com!chewy From: chewy@apple.com (Paul Snively) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW Pascal and libraries Message-ID: <7180@goofy.Apple.COM> Date: 14 Mar 90 18:47:49 GMT References: <958@uvicctr.UVic.CA.UUCP> Sender: usenet@Apple.COM Distribution: na Organization: Apple Computer, Inc. Lines: 57 In article <958@uvicctr.UVic.CA.UUCP> franklin@uvicctr.UVic.CA.UUCP (Katherine Franklin) writes: > I'm just beginning to program on the Mac with MPW Pascal. I have the > MPW manuals and the Pascal Manual. Why does it feel like there is > something missing ? How do I find out what is in the libraries and > how they work ? I've looked at the interface files, but they are > confusing and there are so many of them !! I haven't a clue where to begin > looking for what !! > > Example: I need to convert an integer to a string. It seems like a simple > and common task that I would expect to either be a standard routine or in > the libraries somewhere. Looking for every reference to strings in the the > Pascal manual yields nothing. Is it in the libraries ? I have no idea. Nor > do I know how to begin looking for the info. > > Am I missing something ? > > Katherine You certainly are, if the documents that you named are the only ones that you have on the subject. You'll need at least Inside Macintosh Volumes I-IV, and volume V if you intend to support Macintosh SE- or II-class machines. Also, you'll need the Macintosh Technical Notes, which are available via anonymous FTP to apple.com, in pub/dts/mac/tn, I believe. Among other things, Inside Macintosh documents NumToString, which takes an INTEGER and a VAR STR255, e.g.: VAR theErr: INTEGER; tempString: STR255; ... NumToString(theErr, tempString); ... This will convert theErr to a string, which you can then do whatever you wish with. Hope this helps! __________________________________________________________________________ Paul Snively Macintosh Developer Technical Support Apple Computer, Inc. 1st Choice: Paul_Snively.DTS@qm.gateway.apple.com 2nd Choice: CHEWBACCA@applelink.apple.com Last Choice: chewy@apple.com Just because I work for Apple Computer, Inc. doesn't mean that I believe what they believe, or vice-versa. __________________________________________________________________________