I’m referring to the page https://www.amibroker.com/guide/objects.html#Application to do some ole automation. It would be great if some information is shared on the return values of the functions provided under the Application section.
Is it possible to share details just for the Import ole call. I have seen 4 begin returned most of the time and would like to handle each and every case in my script.
The return value of 0 means success for Import() call, others (non-zero) mean failure. Error 4 means NO FILE - i.e. there is NO FILE AT ALL in the path that you specified. Error 2/3 are “Bad data” errors. You can’t really “handle” errors because they need to be fixed usually at the source (data being imported) or you need to fix format definition… For best information see import.log file that contains exact reason.
Thanks Tomasz. This information will be very helpful.