From: "Richard Fritz" Subject: Re: $IFDEF directive Date: 26 May 2000 00:00:00 GMT Message-ID: <8gmk1h$et72@bornews.borland.com> References: <8gmhjf$etd3@bornews.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.delphi.objectpascal I havent seen this in Delphi. You could make a separate define for each of the two groups you want to code differently (for example $DELPHI123 and $DELPHI45) {$IFDEF DELPHI1} {$DEFINE DELPHI123} {$ENDIF DELPHI1} {$IFDEF DELPHI2} {$DEFINE DELPHI123} {$ENDIF DELPHI2} {$IFDEF DELPHI3} {$DEFINE DELPHI123} {$ENDIF DELPHI3} then {$IFDEF DELPHI123} ... {$ENDIF} -- regards, Richard -- "Vladimir" wrote in message news:8gmhjf$etd3@bornews.borland.com... > Hi, > > Is there a way to check for multiple defines in one $IFDEF directive? > I want to use some declarations in Delphi 1,2,3 but not in Delphi 4 > and 5. > Can I write some like that: > {$IFDEF VER80, VER90, VER100} > ..... > {$ENDIF} > > Thanks for th help. > > Vladimir