$INCLUDE with DATA Statements in SUB May Hang QB.EXE Editor (43791)
This article was previously published under Q43791
SYMPTOMS
Using an $INCLUDE file containing DATA statements that are (illegally)
located inside a SUB or a FUNCTION can cause the QB.EXE editor to
hang. This problem occurs when you attempt to View Subs, Save, or Run
the program. The problem also occurs when you use the Merge command
(from the File menu) to merge a file that contains DATA statements
into a SUB or FUNCTION block.
Note that DATA statements are not legal inside SUB ... END SUB or
FUNCTION ... END FUNCTION blocks.
STATUS
Microsoft has confirmed this to be a bug in Microsoft QuickBasic
Versions 4.00, 4.00b, and 4.50. This problem was corrected in
Microsoft Basic Professional Development System (PDS) Version 7.00
(fixlist7.00).
In the QBX.EXE editor that comes with PDS, this problem is caught by
the error message "Illegal in SUB, FUNCTION, or DEF FN."
This problem can be worked around by observing the rule that DATA
statements cannot be placed (or included) inside SUBs or FUNCTIONs.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB43791 |
|