operhand problem

Reply

Join Date: Jun 2005
Posts: 1
Reputation: brian1966 is an unknown quantity at this point 
Solved Threads: 0
brian1966 brian1966 is offline Offline
Newbie Poster

operhand problem

 
0
  #1
Jun 21st, 2005
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.
briancolston66@hotmail.com
Attached Files
File Type: txt SWIM3.txt (6.6 KB, 2 views)
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 31
Reputation: Jackrabbit is an unknown quantity at this point 
Solved Threads: 0
Jackrabbit Jackrabbit is offline Offline
Light Poster

Re: operhand problem

 
0
  #2
Jun 22nd, 2005
Pass the variable "option" as a parameter to the ReadLn function.

ReadLn(option);
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pascal and Delphi Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC