Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!rutgers!psuvax1!psuvm.bitnet!cunyvm!ndsuvm1!ndsuvax!ncsmith From: ncsmith@ndsuvax.UUCP (Timothy Smith) Newsgroups: comp.lang.pascal Subject: Re: Converting Strings to Char Message-ID: <2181@ndsuvax.UUCP> Date: 22 Feb 89 05:49:04 GMT References: <459@loligo.cc.fsu.edu> <950017@hpcllmr.HP.COM> <1701@westfort.UUCP> Reply-To: ncsmith@ndsuvax.UUCP (Timothy Smith) Organization: North Dakota State University, Fargo Lines: 20 In article <1701@westfort.UUCP> westfort!dragon@tut.cis.ohio-state.edu writes: > > A program that I'm currently working w/ via the communications port, >modem ectal, a routine within it sends characters out in the form of CHAR, as [stuff about disassembling a string type into a series of char type] Rather than using copy to take apart your string you can access it as an array structure. c := copy(s,1,1) is same as c := s[1] This will return a char type in c if c is defined as char or it will return a string type in c if c is defined as type string. -- Tim Smith North Dakota State University, Fargo, ND 58105 UUCP: ...!uunet!ndsuvax!ncsmith | 90% of the people on this planet BITNET: ncsmith@ndsuvax.bitnet | are crazy and the rest of us are INTERNET: ncsmith@plains.NoDak.edu | in grave danger of contamination #! rnews 1