Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!purdue!decwrl!labrea!bloom-beacon!athena.mit.edu!led From: led@athena.mit.edu (Jay Jungalwala) Newsgroups: comp.lang.pascal Subject: Getstring (help!) Message-ID: <8961@bloom-beacon.MIT.EDU> Date: 27 Jan 89 04:42:29 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: led@athena.mit.edu (Jay Jungalwala) Organization: Massachusetts Institute of Technology Lines: 36 Hi there, I was tring to write my own version of getstring, but I failed to a point. Could someone mail me there version of it, or just tell me what is wrong with mine. BELOW THIS LINE IN MY PROBLEM -------------------------------------------------------------------------- I got it to take in values but my problem is that I don't know how to tell it to stop inputing for characters, because I am useing a packed array. Confused? Ok!: I set the packed array to input 70 characters. -------------------------------------------------------------------- const MaxLetter = 70; type GetString = packed array [1..MaxLetter] of char; -------------------------------------------------------------------- Well it inputs everything fine in the packed array, but what if the input is less then 70 characters, how do I tell it to stop waiting for input, and just print the characters that it has. If you are still confused, you could mail me back, and I can just mail you the program and you can see for yourself what is wrong. Thanks, (will take all replys.) -JJ --------------------------------------------------------------------------- R-E-P-L-E-Y---T-O--> led@wombat.mit.edu OR lsrsh!led@wombat.mit.edu (Jay Jungalwala)