{$ELSEIF} not working in Delphi 2006 ?
- From: "Skybuck Flying" <spam@xxxxxxxxxxx>
- Date: Wed, 18 Oct 2006 12:13:52 +0200
Hello,
It seems {$ELSEIF} is not working correctly in Delphi 2006.
Here is some demonstration code:
*** Begin of Code ***
program Test;
{$APPTYPE CONSOLE}
uses
SysUtils;
{$DEFINE C}
begin
{$IFDEF A}
writeln('A');
{$ELSEIF B}
writeln('B');
{$ELSEIF C}
writeln('C');
{$ELSE}
writeln('?');
{$IFEND}
readln;
end.
*** End of Code ***
The output is ?
The output should be C
What's wrong ?
Bye,
Skybuck.
.
- Follow-Ups:
- Re: {$ELSEIF} not working in Delphi 2006 ?
- From: Nicholas Sherlock
- Re: {$ELSEIF} not working in Delphi 2006 ?
- From: Skybuck Flying
- Re: {$ELSEIF} not working in Delphi 2006 ?
- Prev by Date: Re: Where is stringbuilder?
- Next by Date: Re: {$ELSEIF} not working in Delphi 2006 ?
- Previous by thread: Running Web Applications with Delphi 2006 on Windows XP 64 bit Edition.
- Next by thread: Re: {$ELSEIF} not working in Delphi 2006 ?
- Index(es):