Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6303
| From | Harriet Bazley <harriet@bazleyfamily.co.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Arrays in BASIC |
| Date | 2022-01-02 21:01 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <65baa8a459.harriet@bazleyfamily.co.uk> (permalink) |
| References | <3261a6a459.Paul@outlook.com> |
On 2 Jan 2022 as I do recall,
Paul Stewart wrote:
> Hi guys,
>
> Need to pick you brains on Arrays.
>
> Looking at Arrays in the Archimedies User Guide (vintage July 1987), I
> have come to the understanding that it is possible to declare an array
> local to a function or procedure. Having tried to do this, I keep getting
> Syntax Error.
>
> I am trying using: LOCAL DIM a$(1,1)
>
> Also tried different permutations, but all come back with Syntax error.
>
> Am I barking up the wrong tree here or just completely misunderstanding
> the examples provided?
>
> Any advice examples you can give, much appreciated.
>L.
10 PROCarray
16 PRINT D$(1)
17 END
20 DEF PROCarray
30 LOCAL D$()
40 DIM D$(7)
50 D$(1)="hat"
55 PRINT "array", D$(1)
60 ENDPROC
>RUN
array hat
Undimensioned array at line 16
--
Harriet Bazley == Loyaulte me lie ==
Nothing is foolproof - to a sufficiently talented fool
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Arrays in BASIC Paul Stewart <narrowboat-paul@outlook.com> - 2022-01-02 20:36 +0000
Re: Arrays in BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-01-02 21:01 +0000
Re: Arrays in BASIC Paul Stewart <narrowboat-paul@outlook.com> - 2022-01-02 21:56 +0000
Re: Arrays in BASIC Paul Stewart <narrowboat-paul@outlook.com> - 2022-01-02 22:18 +0000
Re: Arrays in BASIC Martin <News03@avisoft.f9.co.uk> - 2022-01-02 22:04 +0000
Re: Arrays in BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-01-02 22:43 +0000
Re: Arrays in BASIC Martin <News03@avisoft.f9.co.uk> - 2022-01-02 23:18 +0000
Re: Arrays in BASIC Steve Drain <steve@kappa.me.uk> - 2022-01-03 09:46 +0000
csiph-web