Undeclared identifier '___StringHelper'

edited 8:22PM in FastScript
Hi!

After updating to FastScript ver. 1,7, an error will be raised, if I compile the flowing script.

Syntax:
if (Text>'') and (Text[1]) = 'A' then
;

Error message:
Undeclared identifier '___StringHelper'

Please help
Regards
Christian

Comments

  • edited 8:22PM
    Change the fs_iinterpreter.pas:

    constructor TfsScript.Create(AOwner: TComponent);
    begin
    inherited;
    FItems := TStringList.Create;
    FItems.Sorted := True;
    FLines := TStringList.Create;
    FStatement := TfsStatement.Create(Self, '', '');
    FSyntaxType := 'PascalScript';
    FUnitLines := TStringList.Create;
    Add('__StringHelper', TfsStringHelper.Create);
    Add('__ArrayHelper', TfsArrayHelper.Create('__ArrayHelper', -1, fvtVariant, ''));
    end;
  • edited 8:22PM
    Thanks for your anwser.
    I modified the source as you wrote, but now I receive this error in "TfsMethodHelper.GetValue" function:
    "Invalid variant type conversion"

    I'm running the same pascal script.

    Regards
    Christian
  • edited 8:22PM
    Your script syntax is not valid:

    if (Text>'') and (Text[1]) = 'A' then

    should be:

    if (Text<>'') and (Text[1] = 'A') then

Leave a Comment