[Coco] How to dimension strings in Basic09.

L. Curtis Boyle curtisboyle at sasktel.net
Tue Apr 18 15:37:50 EDT 2023


The syntax you are looking for would be:

DIM L$(3):STRING[72]


> On Apr 18, 2023, at 12:36 PM, coco--- via Coco <coco at maltedmedia.com> wrote:
> 
> All
> 
> I wanted to have an array of three strings where each string could be up to 72 characters in length.
> 
> If I use the command
> 
> DIM L$(3)
> 
> I get an array of three strings but each string can only be up to 32 characters in length.
> 
> I tryed
> 
> DIM L$[72](3) but that just gives a syntax error.
> Assumeing that it can be done what is the proper syntax for what I am trying to do ?
> 
> Maybe I need to use the TYPE command somehow ?
> 
> Charlie.



More information about the Coco mailing list