Qbasicnews.com

Full Version: Error Codes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a list of what all the error code that attack you in FreeBASIC means?

0 = No error
128 = File not found

That's about all I know :roll:
I would think the errors are according to the OS you're coding under :-)....
I built a list of Windows errors on my website

http://www.ascii-world.com/tutors/window...sages.html
The runtime errors list is pretty short, taken from libfb_error.c:

Code:
static const char *error_msg[] = {
"",    /* FB_RTERROR_OK */
"illegal function call", /* FB_RTERROR_ILLEGALFUNCTIONCALL */
"file not found",  /* FB_RTERROR_FILENOTFOUND */
"file I/O error",  /* FB_RTERROR_FILEIO */
"out of memory",  /* FB_RTERROR_OUTOFMEM */
"illegal resume"  /* FB_RTERROR_ILLEGALRESUME */
};

OK = 0, ILLEGALFUNCTIONCALL = 1 and so on..
would it be possible to add an "out of bounds" error for arrays?
Only when that gets added, it will have to be added inline etc.. adding proper debugging support is the next priority..