Hello,
When we call IDEScripter1.Compile it does not return anything....so...
How can we know if the code has compiled successfully or not?
Regards,
Yogesh
If there is a compilation error, it raises an exception. If no exception is raised, compilation went fine.
Hello Wagner,
When I call the procedure: IDEEngine1.CompileProject;
In compiled exe. If there is error in the code the component shows the error message and nothing happens. I mean there is not exception generated that I can trap in my code.
Regards,
Yogesh
The exception is raised, and this code is working here:
try
IDEEngine1.CompileProject;
except
ShowMessage('Exception raised!');
end;
Message is properly displayed. Nevertheless you can also use TatScripter.OnCompileError event that is also fired when a compilation error occurs.