Pascal variable to only enter one letter?
Posted on 2004-10-03
I guess this is really simple but I am unsure how to do it. I am new to pascal (and any programming for that matter so keep it simple please). I want to make a program with a variable that only allows the user to enter one single letter. For example, in my program, i have:
One : char;
Two : char;
Three : char;
I have ran this program and it allows me to enter as much as i want (any explination as to why?, i thought the char variable only lets you enter 1 character). I want a variable that will not let me enter more than one character and only lets you enter letters (eg. A B C D...). Thankyou in advance.