type is not automatable:"char" lazarus / 21-General ---------------------------------------------------------------------- fan2006 · 2021-06-27 09:35 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program msh;uses Comobj,activex;var  script:oleVariant;  r:string;begin    script:=CreateOleObject('ScriptControl');    script.Language:='Jscript';    script.AddCode('var a=1+4*2;');    r:=script.eval('a');    script:=Unassigned;    writeln(r);    readln;end.it will receive an error message as the title described. any idea how to fix it? ---------------------------------------------------------------------- fan2006 · 2021-06-27 10:28 thx,it works fine.