Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!elroy.jpl.nasa.gov!usc!ucselx!petunia!allanon!marcos From: marcos@allanon.UUCP (Marcos Della) Newsgroups: comp.lang.pascal Subject: Re: Help me (problems with strings) Message-ID: Date: 21 May 91 12:02:55 GMT References: <1991Apr18.221625.13529@watmath.waterloo.edu> Organization: Allanon's Bar & Grill Lines: 25 nmouawad@watmath.waterloo.edu (Naji Mouawad) writes: > In article <1991Apr18.020517.7767@javelin.sim.es.com tpehrson@javelin.sim.es. > I'm getting the error "Type mismatch" in the following: > > Procedure writ(txt:string); > var huh:char; > begin; > for x:=1 to length(txt) do begin > huh:=copy(txt,x,1); <---error occurs here > case huh of >... Try changing the case to: CASE txt[x] OF or the previous line to: huh := txt[x]; Marcos ____________________________________________________________________________ Marcos R. Della | Did you ever wonder if there was allanon!marcos@petunia.CalPoly.EDU (home) | more to the universe than this? mdella@polyslo.CalPoly.EDU (school) | marcos.della@f185.n125.z1.fidonet.org | ...I didn't...