954,174 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

operhand problem

doing pascal at college need some help with this as it is doing my nut in this the program i have a company called brians building firm i have to put to screen a menu with 4 choices 1 min/max sales 2 average sales 3 attendance figers and 0 for quit these sales will appear on screen as a bar or table chart i have the problem were it says operhand types do not match operator here it highlights on the in bit of the code if you could help me i would appreciate it so much give me a shout at my email address cheers.


program get_option;
begin
repeat
writeln('viewing data');
writeln('press T for table of data');
writeln('press B for chart of data');
readln;
if not option in ['T','t','B','b']then
writeln('invalid option');
untill option in ['T','t','B','b']
end{repeat}
end

the whole program code will be attached.
[email]briancolston66@hotmail.com[/email]

Attachments SWIM3.txt (6.59KB)
brian1966
Newbie Poster
1 post since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

Pass the variable "option" as a parameter to the ReadLn function.

ReadLn(option);

Jackrabbit
Light Poster
31 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You