Calling script procedures

z8000783

New member
I have a problem that has manifested since downloading 4.8. This works fine with 4.7. Any thoughts would be appreciated.

I have a javescript call as follows:

allnotestext = window.external.GetHEScriptCom(‘DiagAss.ReadTextFile’,‘none’);

This is the procedure in DiagAss
Code:
function ReadTextFile: String;                      
var                                          
 T: TStringList;                            
begin                          
 Filename := GetGlobalVar("exfname", "");      
 S := GetGlobalVar("HEPubStorageLocation", "");       
 MessageBox(S, "Second Demo", MB_OK+MB_ICONINFORMATION);     
 if S = "" then exit;              
 Filename := IncludeTrailingBackslash(S) + Filename;                                                                                                    
 T := TStringList.Create;                                      
 // Loads the text file.  
      T.LoadFromFile(Filename);          
 // Gets the contents.
 Result := T.Text;                     
 T.Free;
end;
When I make the call in 4.7, it works fine. Under 4.8 the application closes.


57aa3138.jpg352×195 15.8 KB


Out of ideas or things to try at this end.
 

Attachments

  • 57aa3138.jpg
    57aa3138.jpg
    15.8 KB · Views: 0
We really would like to publish our script now and this is holding us up.

Is it possible to download 4.7 please?
 
Back
Top