Nicola1664
07-10-2002, 05:49 AM
I am stuck on a question could anybody please help with, the question is:
Give an example of an error you think a compiler might report
Give an example of an error you think a compiler might report
Visual Basic 6 Course HELP!!Nicola1664 07-10-2002, 05:49 AM I am stuck on a question could anybody please help with, the question is: Give an example of an error you think a compiler might report Garrett Sever 07-10-2002, 06:13 AM Bad syntax. Squirm 07-10-2002, 06:22 AM You need to learn the difference between compile-time and run-time errors. Run-time errors are errors which happen at run time (no really). That is, they may be caused by the contents of a variable, which the compiler cannot possibly predict. Such an error might be 'Overflow', 'Out of memory', or 'Division by zero' Compile-time errors are more obvious errors in the code where something blatantly illegal is happening. Such an error might be 'Type mismatch', 'Syntax error' or 'Sub or function not defined' NorthWind 07-10-2002, 07:43 AM division by zero error... Squirm 07-10-2002, 08:21 AM A compiler would not report a division by zero error since that is a runtime error. davie 07-10-2002, 08:24 AM undeclared variable Big Boabby 07-10-2002, 08:27 AM expected Expression NorthWind 07-10-2002, 01:13 PM it does while i was making a calculator with vb, it gave the error divisin by zero. so i wrote an error handle for it. Originally posted by Squirm A compiler would not report a division by zero error since that is a runtime error. BillSoo 07-10-2002, 01:37 PM I think what Squirm means is that division by zero errors occur when the program is running, not when it is being compiled. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum