Re: {$ELSEIF} not working in Delphi 2006 ?



Skybuck Flying wrote:
{$ELSEIF B}

'B' is not a conditional expression. You probably mean:

{$IFDEF A}
writeln('A');
{$ELSEIF DEFINED(B)}
writeln('B');
{$ELSEIF DEFINED(C)}
writeln('C');
{$ELSE}
writeln('?');
{$IFEND}

Prints 'C'.

Cheers,
Nicholas Sherlock

--
http://www.sherlocksoftware.org
.