<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Tue, 04 Sep 2001 19:51:40 +0100
From   : Chris Johns <cmj@...>
Subject: Re: BASIC Programming: Positively soul destroying

> The relevance of this? Well, I'm not sure
> if BBC Basic allowed you to define an array using one of the resident
> integers as the array name. If it doesn't, then this could also be the cause
> of your subscript error.

I'm pretty sure it considers the different types of variables seperately,
so A is diffetent from A%, which is different from A(), so you can have
A$, A%, A, A%(), A$(), and A()

eg.
A = 1.2
A% = 1
A$ = "BBC"

DIM A(2)
DIM A%(2)
DIM A$(2)

A(1) = A
A%(1) = A%
A$(1) = A$

PRINT A,A(1)
PRINT A%,A%(1)
PRINT A$,A$(1)

This would appear to be the case on the Archimedes BASIC, and I think it
is on the beeb too.
-- 
Chris Johns (cmj@...                     )


<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>