QuickBASIC String Descriptor Has Six Bytes: 3.00 Has Five (37313)






This article was previously published under Q37313

SUMMARY

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.

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: KB37313