[Coco] How to dimension strings in Basic09.

coco at jechar.ca coco at jechar.ca
Tue Apr 18 21:28:17 EDT 2023


Thanks that worked. Still having some problems do you know where
I can find a list of what the basic09 error numbers mean ?

On 2023-04-18 15:37, L. Curtis Boyle wrote:
> 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