PRB: Can't Have Fixed Length Strings >32K in 32-bit WindowsLast reviewed: September 29, 1997Article ID: Q129802 |
The information in this article applies to:
SYMPTOMSAttempting to create fixed-length strings within a user-defined type in the 32-bit version of Microsoft Visual Basic version 4.0 generates this error:
"Fixed or static data can't be larger than 64K" CAUSEBecause 32-bit Microsoft Visual Basic uses Unicode to store strings and Unicode requires two bytes per character in a string, fixed-length strings take twice as many bytes of storage as the 16-bit versions of Visual Basic. If you assign or dimension more that 32K characters to a string, the storage actually exceeds the 64K limit of Visual Basic user-defined types.
RESOLUTIONLarger strings can be assigned to string elements of user-defined types by using variable-length strings instead of fixed-length strings.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional query words: double byte character set dbcs
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |