I am having trouble with some scripts that used to work with HE v3.6 but are failing with HE v4.02. These scripts will “Check” and “Save” OK but fail to compile with error messages like:
Fatal compilation error
Unknown identifier or variable not declared: ‘TStringList’.
Source position 7,20
This happens even with this simple test script taken from the HE documentation
function ReadTextFile(Filename: String): String;
var
T: TStringList;
EbookPath: String;
begin
T := TStringList.Create;
EbookPath := GetGlobalVar(“HEPublicationPath”, “”);
// Loads the text file.
T.LoadFromFile(EbookPath + Filename);
// Gets the contents.
Result := T.Text;
T.Free;
end;
Comments/fixes apppreciated.