incompatible types: string and procedure

I'm just starting with pascal, and programming altogether so I'm making a practice application.
I cant understand the cause of this error:
[Error] pie.dpr(39): Incompatible types: 'String' and 'procedure, untyped pointer or untyped parameter'

[code]program pie;

{$APPTYPE CONSOLE}

uses
SysUtils;

var
thepie, again : string;
label
jump;


begin
writeln ('Hi, cheese!!!') ;
jump:
writeln ('Insert pie type : ');
readln (thepie);

if thepie = 'cheese' or if thepie = 'Cheese'
then
writeln ('Cheese pie?! ...Delicious!')
else
if thepie = 'chicken' or if thepie = 'Chicken'
then
writeln ('Chicken pie?! Woah!')
else
if thepie = 'noodle' or if thepie = 'Noodle'
then
writeln ('does that exist! It would be an epic pie if it did!')
else
begin
write ('mmmm... ');
write (thepie);
write (' flavoured pie...');
writeln (' ');
writeln ('Try again?');
readln (again);
end;
if again = 'y' or if again = 'yes' or if again= 'Yes' or if again= 'YES'
then
goto jump;
end;

end.

[/code]
Can someone explain what I'm doing wrong?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories