Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!cmcl2!adm!xadmx!jc58+@andrew.cmu.edu From: jc58+@andrew.cmu.edu (Johnny J. Chin) Newsgroups: comp.lang.pascal Subject: Re: function return value Message-ID: <18610@adm.BRL.MIL> Date: 9 Mar 89 00:03:52 GMT Sender: news@adm.BRL.MIL Lines: 26 Your function should read like this: function what (x:string):string; var tmp:string; begin tmp:=x; what := tmp + tmp; end; In your original function, the line which reads: what:=what+what; causes an error because "what" is a function and NOT a variable. I hope this info helps. __________ ___ / \ / / /_/ / /\/ _/ / / / __/. /__ / / / / / / / / / / 4730 Centre Ave. #412 ARPAnet: Johnny.J.Chin@andrew.cmu.edu / ------- / Pittsburgh, PA 15213 BITnet: jc58@andrew \__________/ (412) 268-8936 UUCP: ...!harvard!andrew.cmu.edu!jc58 Computer Dr. Disclaimer: The views expressed herein are STRICTLY my own, and not CMU's.