Out of String Space Error in SUB Caused by String Function (76512)
The information in this article applies to:
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
This article was previously published under Q76512 SYMPTOMS
In a Basic .EXE program compiled for far strings, if you use Basic
string functions such as LEFT$ or SPACE$ in an assignment to a string
array element within a Basic SUB or FUNCTION, the temporary string
space allocated to perform the assignment(s) is not released until you
exit the SUB or FUNCTION.
WORKAROUND
To work around the problem, you can assign the string returned from
the Basic string function to a simple string variable, then assign
that string variable to the string array element.
Note that this problem only occurs in a program compiled for far
strings (with BC /Fs), and not in the QBX.EXE environment or a program
compiled for near strings.
STATUS
Microsoft has confirmed this to be a bug in Microsoft Basic
Professional Development System (PDS) for MS-DOS and MS OS/2,
versions 7.0 and 7.1. This problem was corrected in Microsoft
Visual Basic version 1.0 for MS-DOS.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | KB76512 |
---|
|