Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: ifdef question Date: Wed, 28 Oct 2015 14:45:59 +0100 Lines: 46 Message-ID: References: X-Trace: individual.net E9TXRMQlaJgY1EQmLDPLNA+ViIAZy9xm3TDZKrxT+cOgEcy9o= Cancel-Lock: sha1:F2MdcmRhiIqAyuO6CsvFF4Rbc1g= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:8575 Hi Johan, this will work with Vulcan.NET because it is file based. With VO it will not work because it is entity based. #ifdef and collegues in VO will work only in one entity. Wolfgang Johan Nel wrote: > Martin, > On 2015/10/28 12:05, Martin wrote: > > And I have not been able to use ifdef in the class definition for > > SLE_WH > > > > Is this possible? > > Tested the following and it compiles correctly. > > #ifdef DEBUG > CLASS Xyz INHERIT y > #else > CLASS Xyz INHERIT z > #endif > END CLASS > > #ifdef DEBUG > CLASS y > END CLASS > #else > CLASS z > END CLASS > #endif > You will need to #define MM in the .prg or in a .vh file that you > then obviously need to #include in the .prg > > HTH, --