How SUB and FUNCTION Windows Inherit DEFtype in QB.EXE Editor (47491)
This article was previously published under Q47491
SUMMARY
The following information applies to the QB.EXE editor in QuickBasic
versions 4.00, 4.00b, and 4.50; to the QB.EXE editor in Microsoft
Basic Compiler versions 6.00 and 6.00b; and to the QBX.EXE editor in
Microsoft Basic Professional Development System (PDS) versions 7.00
and 7.10.
When creating SUB or FUNCTION procedures in the QB.EXE or QBX.EXE
editor, the procedures inherit the DEFtype statement shown in the
window in which they were first created. "DEFtype" refers to the
following statements: DEFINT, DEFLNG, DEFSNG, DEFDBL, DEFSTR, and
DEFCUR. (DEFCUR, which is a declaration for the CURRENCY data type, is
supported only in Basic PDS 7.00 and 7.10.)
If no DEFtype statement is visible in a window, the default DEFSNG A-Z
applies. If a certain range of letters is not covered by a DEFtype
statement in the current window, then that range of letters is covered
by DEFSNG (since single precision is the default data type).
For more information in a related article, search for the following
words:
DEFLNG and MISMATCH and $DYNAMIC
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB47491 |
|