Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lanl!cmcl2!adm!xadmx!RDK%vm.temple.edu@cunyvm.cuny.edu From: RDK%vm.temple.edu@cunyvm.cuny.edu (Robert Keiser) Newsgroups: comp.lang.pascal Subject: Re: Converting Strings to Char Message-ID: <18398@adm.BRL.MIL> Date: 17 Feb 89 17:01:30 GMT Sender: news@adm.BRL.MIL Lines: 19 A string of size 1 and a char are not the same size. It is easiest to think of a variable defined as a string[n] to be a packed array [0..n] of Char. the 0th element contains the size of the string in character form. You can get the length of the string by using the ORD function. i.e. ORD(string[0]) is equal to the length of the string. (thats what the Length function does.) So, a string of size 1 is really 2 elements long while a CHAR is only one element. I don't know if this helps but it was the first thing that caught my eye. Robert Keiser Temple University Computer Activities Bitnet : RDK@Templevm Internet : RDK@VM.TEMPLE.EDU US Mail : Temple University Philadelphia, PA 19122