How to Avoid "String Too Long" Using PICTURE$ Function (36349)
The information in this article applies to:
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
This article was previously published under Q36349 SUMMARY
This article applies to Macintosh QuickBASIC Version 1.00 for the
Apple Macintosh.
When collecting a large picture with the PICTURE ON...PICTURE OFF
statements, the size of the picture may grow beyond the 32K maximum
size allowed for a string variable. When the picture is assigned to a
string variable with p$ = PICTURE$, a "String too long", error 15
message will appear if the recorded picture has exceeded 32,767 bytes.
The subprogram below allows you to monitor the current size of the
picture that is being recorded. This allows you to stop recording and
start a new picture when the size of the current picture approaches
the limit for a BASIC string.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB36349 |
---|
|