Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!mephisto!prism!dsrekml From: dsrekml@prism.gatech.EDU (Mike Mitten) Newsgroups: comp.lang.pascal Subject: Re: uppercase and char and string[1]; Message-ID: <3785@hydra.gatech.EDU> Date: 27 Nov 89 00:26:13 GMT References: <5477@uhccux.uhcc.hawaii.edu> <89321.122908TBC101@PSUVM.BITNET> Reply-To: dsrekml@prism.gatech.EDU (Mike Mitten) Organization: Georgia Institute of Technology Lines: 20 In article <5477@uhccux.uhcc.hawaii.edu>, cs211s65@uhccux.uhcc.hawaii.edu (Cs211s65) says: > Secondly, Despite my teacher's dislike of Turbo Pascal, I broke down and >used a STRING[1] type, BUT, when I try to use ord or chr functions it >gave me a TYPE MISMATCH error . . . If you were doing ord(String1Var) you were getting the type mismatch because you are passing a string variable to a function which needs a char variable. This should be avoidable by using ord(String1Var[1]). Hope this helps, -Mike Mike Mitten -- Irony is the spice of life. -- WREK Radio, Georgia Tech, Atlanta GA, 30332 (404) 894-2468 ARPA: dsrekml@prism.gatech.edu uucp: ...!{allegra,amd,hplabs,seismo,ut-ngp}!gatech!prism!dsrekml | CAUTION: The above is the output of experimental software simulating the | | result of 1000 monkeys typing on 1000 typewriters for 1000 years. |