Microsoft KB Archive/37313

From BetaArchive Wiki
Knowledge Base

QuickBASIC String Descriptor Has Six Bytes: 3.00 Has Five

Article ID: 37313

Article Last Modified on 11/21/2006

This article was previously published under Q37313


The length of a string descriptor in Macintosh QuickBASIC is six bytes, in both compiled and interpreted programs.

Note that the Microsoft BASIC Interpreter Versions 2.00, 2.10, and 3.00 uses a five-byte string descriptor. QuickBASIC has changed the length of its string descriptors from five bytes to six bytes so programs written in the Microsoft BASIC Interpreter environment can be more compatible with the compiler. The Microsoft BASIC Compiler Version 1.00 (released before QuickBASIC) also uses a six-byte string descriptor.

An assembly-language routine that uses string descriptors and used to work correctly with the Microsoft BASIC Interpreter Versions 2.00, 2.10, or 3.00 may now give strange results in QuickBASIC. The assembly-language routine will need to be rewritten to take into account the larger string descriptor size.

Additional query words: MQuickB

Keywords: KB37313