[Coco] Strings in DECB
Robert Gault
robert.gault at att.net
Tue Oct 20 22:19:48 EDT 2015
Theodore (Alex) Evans wrote:
> I was talking with a friend. We had a disagreement about the maximum length of strings under DECB. He claimed it was 128 and I believe d it was 255. So I did some testing. The results were puzzling. I created a string and began extending it. Any attempt to extend a string of 100 characters or more (even with an empty string "") results in an OS error as does any attempt to extend a string past 100 characters, but I can define and use a string up to 255 characters in length.
>
>
>
Well part of the problem probably is that you have used up all your data
space. What you need to do is use the CLEAR command to increase your
string workspace and if your program requires it set the highest address
used by Basic.
CLEAR n,h
n = String workspace
h = highest Basic memory address.
Try a CLEAR1000 and see what happens when you build strings.
Robert
More information about the Coco
mailing list