[NTLK] NSBasic Question - arrays

PMichael Rodgers pmiker at copper.net
Tue Aug 24 06:41:43 EDT 2010


  Here is the code snippet I'm having trouble with:

0010 dim a[b,c]
0020 for b=1 to 5
0030     for c=1 to 4
0040         read a[b,c]
0050     next c
0060 next b
0070 data 0,2,3,0
0080 data 1,0,5,0
0090 data 0,4,0,1
0100 data 3,5,0,0
0110 data 4,0,0,2

I get the following:
0010  :Error 63 - Incorrect # of args

Mike

On 8/23/2010 8:58 PM, PMichael Rodgers wrote:
>    Can NSBasic handle arrays of more than a single dimension?  I see the
> definition that shows dim a[10] but I have tried dim a[b,c] and it does
> not work.  I cannot find an example of 2 or 3 dimensional arrays.
> Mike
>
>
> ====================================================================
> The NewtonTalk Mailing List - http://newtontalk.net/
> The Official Newton FAQ     - http://splorp.com/newton/faq/
> The Newton Glossary         - http://splorp.com/newton/glossary/
> WikiWikiNewt                - http://tools.unna.org/wikiwikinewt/
> ====================================================================
>
>




More information about the NewtonTalk mailing list