led@athena.mit.edu (Jay Jungalwala) (01/27/89)
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)