Use a two dimensional list (a list of lists).  Then you could access
that by saying

arrayname[2][62].

~matt desimone
[EMAIL PROTECTED]

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:lingo-l-
> [EMAIL PROTECTED]] On Behalf Of Robert Rycroft
> Sent: Friday, February 15, 2002 9:15 AM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> Lingo and Matrices
> 
> Is there any way to use Lingo to work with a n x m matrix?  For
example,
> let's say I have data that could be stored in a matrix with 100 rows
and 2
> columns.  I seem to recall reading about it somewhere.  Something
about
> putting linear lists inside linear lists, but cannot find the source
and
> cannot figure out how to access the specific elements of the matrix.
For
> example, how would I access the element in row 62, column 2?
> 
> I am trying to use Lingo to write a simulation that was originally
written
> in BASIC.  In BASIC multi-dimensional matrices are easy to work with.
> 
> Thanks.
> 
> Robert Rycroft
> [EMAIL PROTECTED]
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/lingo-l.cgi  To post messages to the list,
email
> [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]).
Lingo-L
> is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to