"System Error" with Inadvertent Implied CALL; B=2: B ; C-D=E (20538)
The information in this article applies to:
- Microsoft QuickBASIC 1.0
- Microsoft QuickBASIC 1.0a
- Microsoft QuickBASIC 1.0b
- Microsoft BASIC Interpreter for Apple Macintosh 2.0
- Microsoft BASIC Interpreter for Apple Macintosh 2.1
- Microsoft BASIC Interpreter for Apple Macintosh 3.0
- Microsoft BASIC Compiler
This article was previously published under Q20538 SUMMARY
This information applies to Microsoft QuickBASIC Versions 1.00, 1.00a,
1.00b,
Microsoft BASIC Compiler Version 1.00, and Microsoft BASIC Interpreter
Versions 2.00, 2.10, and 3.00 for the Apple Macintosh.
The following "valid" BASIC statement can cause a System Error:
B=2 : B ' This is the same as B=2 : CALL B
Because B has not been defined as a subprogram, BASIC assumes that you
are calling the machine-language routine at the address (2) contained
in B. Because you have not yet placed a proper machine-language
routine at this address, you usually will get a System Error and must
reboot. This is an example of an "implied CALL", a special CALL syntax
that does not require an explicit CALL statement. For more information
about implied CALLs, refer to the CALL statement documentation.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB20538 kbAudDeveloper |
---|
|