Undeclared identifier '___StringHelper'

edited 9:17AM 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 9:17AM
    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 9:17AM
    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 9:17AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.