I have the hescript (UserMain):
function UploadXml: String;
begin
Result := OpenFileDialog(“Select a Xml to open”, “.xml", ".xml”, “XML files (.xml)|.xml”, “”);
end;
And i call this javascript funtion:
function uploadXML()
{
var xmlFilename = exeoutput.RunHEScriptCom(‘UserMain.UploadXml’, false);
alert(xmlFilename);
}
Its open the file windows (and i choose one file) but the alert shows “undefined”.
I use the chrome.
When i use ie and call “window.external.GetHEScriptCom(‘UserMain.UploadXml’, false)” works.