VARPTR$ Malfunctions on Local Variable Length STRING Arrays (43528)
This article was previously published under Q43528
SYMPTOMS
The VARPTR$ function returns a string representation of a variable's
address that can be used by the DRAW or PLAY statements. If VARPTR$ is
used on an element of a local SUBprogram variable length STRING array,
it generates an "Illegal Function CALL" during run time. This problem
does not occur when run from within the QuickBasic environment, but
only when run as a compiled program. The problem occurs when the
program is compiled with or without /D, or if it is compiled as a
stand-alone executable file or one requiring the run-time module.
STATUS
Microsoft has confirmed this to be a bug in Microsoft QuickBasic Versions
4.00, 4.00b, and 4.50, and the Microsoft Basic Compiler Versions 6.00
and 6.00b (buglist6.00, buglist6.00b). We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
Workarounds to this problem follow in the "More Information" section.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB43528 |
|