944,089 Members | Top Members by Rank

Ad:
Jun 21st, 2005
0

operhand problem

Expand Post »
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, 12 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
brian1966 is offline Offline
1 posts
since Jun 2005
Jun 22nd, 2005
0

Re: operhand problem

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

ReadLn(option);
Reputation Points: 10
Solved Threads: 0
Light Poster
Jackrabbit is offline Offline
31 posts
since Jan 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: Trying to find a better way to generate random numbers in Dev Pascal
Next Thread in Pascal and Delphi Forum Timeline: calnder programming in turbo pascal With Text & background !!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC