Fixed-Length Strings Are Initialized to NULL (0), Not Blanks (35245)
This article was previously published under Q35245
SUMMARY
The information below about fixed-length string arrays should be
inserted in the following manuals:
- "Microsoft QuickBasic 4.0: Basic Language Reference"
- "Microsoft Basic Compiler 6.0: Basic Language Reference" for
Versions 6.00 and 6.00b for MS OS/2 and MS-DOS
On Pages 156, 174, and 352, under the DIM, ERASE, and REDIM
statements, the above manuals state that elements of string arrays are
initialized to null strings (strings of zero length). However, this is
not the case with fixed-length strings. Fixed-length strings are
initialized as a string of null bytes (with ASCII value of 0). The LEN
function always returns the complete length of the fixed-length
string. If a fixed-length string is initialized to "" (the null
string), it is completely filled with blank spaces (ASCII value of
32).
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB35245 |
|