Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!ebergman From: ebergman@isis.cs.du.edu (Eric Bergman-Terrell) Newsgroups: comp.lang.pascal Subject: Re: What's wrong with this: Message-ID: <1991Apr20.023255.29222@mnemosyne.cs.du.edu> Date: 20 Apr 91 02:32:55 GMT References: <1991Apr20.011454.25016@javelin.sim.es.com> Sender: usenet@mnemosyne.cs.du.edu (netnews admin account) Reply-To: ebergman@isis.UUCP (Eric Bergman-Terrell) Organization: Nyx, Public Access Unix (sponsored by U. of Denver Math/CS dept.) Lines: 18 Disclaimer1: Nyx is a public access Unix system run by the University of Denver Disclaimer2: for the Denver community. The University has neither control over Disclaimer3: nor responsibility for the opinions of users. two things about your code: 1. it looks like you're trying to make a permanent change to the parameter - if so, it needs to be passed by reference (i.e. it needs to be a VAR parameter). 2. you've declared a function, but haven't returned a value (by assigning a value to the function's name. Really you have two options here: 1. Write a procedure that changes the value of its parameter 2. Write a function that returns the changed string Terrell