Invalid Define DELPHI2006 for inline in atScript.pas

Define DELPHI2006 is not a result of the version detection in ASCRIPT.INC.
Here DELPHI2006_LVL is used.

function ToVariant(const Value: TScriptValue): Variant; {$IFDEF DELPHI2006}inline;{$ENDIF}

Replacing

{$IFDEF DELPHI2006}

by

{$IFDEF DELPHI2006_LVL}

works fine except for ScriptValueAsString which uses local VarToStr function.

Thank you for reporting. We have applied the fixes here internally and they will be available in the next release.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.