GPC Problem
Tue, 15 Jul 1997 15:55:42 -0400 (EDT)
In your latest "Beta Version (2.7.2.1)", I've run across
the following problem:
Command:
gpc test.pas
test.pas: In function `program_Test':
test.pas:13: invalid operands to binary =
test.pas:13: condition must be of Boolean type
PROGRAM Test;
TYPE
Colors = (Yellow, Orange, Red, Purple, Green);
VAR
ThisColor : Colors;
BEGIN
ThisColor := Purple;
IF ThisColor >= Yellow THEN
BEGIN
WRITELN ('>= Yellow');
IF ThisColor = Purple THEN (* THIS IS LINE 13 *)
WRITELN ('Purple');
END;
END.
Any ideas or fixes?
Phil
-------------------------------------------------------------------------
Philip A. Robertson Gilbarco Inc. F-78
Phone (910) 547-5164 7300 W. Friendly Ave
Fax (910) 292-8871 Greensboro, NC 27410
-------------------------------------------------------------------------
Phil Robertson (phil_robertson@gilbarco.com)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es