Path: utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!ames!uhccux!cs211s65 From: cs211s65@uhccux.uhcc.hawaii.edu (Cs211s65) Newsgroups: comp.lang.pascal Subject: uppercase and char and string[1]; Keywords: help.. me.. Message-ID: <5477@uhccux.uhcc.hawaii.edu> Date: 17 Nov 89 00:34:34 GMT Article-I.D.: uhccux.5477 Organization: University of Hawaii Lines: 25 Aloha Networld, First I would like to thank all of you who responded to my question about how to get a run on to the printer. Sorry about the flamefest I created. My problem, or more like question: Since my pascal teacher here in Hawaii has a thing against turbo Pascal, she doesnt allow, or takes off points if one uses non-standard commands, So.. when I declare a string, I have to declare it as type packed array [1..10] of char. My question is, how would I change a string of that type to an all upper case string, the way she instructed us to do it is by writing it to a file, and reading it character by character so that you can get an upper case by the formula chr(character+(ord('a') - ord('A')) (something like that) but I KNOW there has to be an easier way (in standard pascal) any help would be appreciated. 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, so I wanted to make it into a char character. so I char_letter := string_letter; but the compiler would now accept it. How do I make a single length STRING[1] type character to a CHAR character? Please help.. ALoha and Mahalo from Sunny Hawaii! edward Yagi AKA edman! ps. conoutptr := lstoutptr works the best! t h a n k y o u v e r y m u c h ! ! !