Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Moving from EWB2 to EWB3 - suggestion
Thu, Apr 9 2020 1:20 PMPermanent Link

Douglas Lyman

As some function syntax has changed between versions (most notably DataSet.Find), if would be VERY helpful to have support for compiler directives:

{$DEFINE EWB3}

{$IFDEF EWB3}
.
.
.
{$ELSE}
.
.
.
{$ENDIF}
Thu, Apr 9 2020 1:37 PMPermanent Link

Raul

Team Elevate Team Elevate

On 4/9/2020 1:20 PM, Douglas Lyman wrote:
> As some function syntax has changed between versions (most notably DataSet.Find), if would be VERY helpful to have support for compiler directives:
>
> {$DEFINE EWB3}
>
> {$IFDEF EWB3}

Do you mean like

https://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Defines
 Smile

or something more specific to actual compiler version


Raul
Thu, Apr 9 2020 2:18 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Doug,

<< As some function syntax has changed between versions (most notably DataSet.Find), if would be VERY helpful to have support for compiler directives: >>

You can use this to do what you want:

{$IFDEF CLIENT}
{$DEFINE EWB3}
{$ENDIF}

The CLIENT symbol, along with the SERVER and BROWSER symbols, are specific to EWB 3 and always defined globally by the compiler, depending upon the application type, etc.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Apr 9 2020 3:14 PMPermanent Link

Douglas Lyman

Perfect.  Did not know this was in place.  Thanks all!
Image