matrix=[[1,2,3],[#a,7,5],["roy","bum"]]

put matrix[1]  -- [1,2,3]
put matrix[1][2]  -- 2
put matrix[2][1]  --#a

get it?

On 15 Feb 2002 at 9:14, Robert Rycroft wrote:

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