I try to use GcBasic inside a script, and the next command should be executed only if GcBasic compiler ends with no errors, but GcBasic always exit with error-code = 0, that is no errors; there are error messages to standard output, but any to error output.
To solve this i added a run-time error just at the end of "SUB WriteErrorLog"
Now the program exit with error-code != 0 and i can handle next command properly.
But i don't know if this is the proper way or not... Any recomendation?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I try to use GcBasic inside a script, and the next command should be executed only if GcBasic compiler ends with no errors, but GcBasic always exit with error-code = 0, that is no errors; there are error messages to standard output, but any to error output.
To solve this i added a run-time error just at the end of "SUB WriteErrorLog"
Now the program exit with error-code != 0 and i can handle next command properly.
But i don't know if this is the proper way or not... Any recomendation?