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.
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.
