On Fri, 3 Sep 1999, Leston Drake wrote:

> I'm used to using multi-dimensional arrays such as My2DArray[ ][ ]
> to store spreadsheet-like data, where My2DArray[1][3] would be the
> 3rd "cell" (or column) in the 1st row. I'm trying to decide how this
> maps onto associative arrays in MC. I haven't found much in way of
> documentation that gave me any clues. It's very important that I be
> able to somehow represent my data (internally) like a 2-dimensional
> array. Has anyone done this or have more info on how I might use
> associative arrays to do this?

MetaCard doesn't support true multi-dimensional arrays, but you can
simulate them well enough using the , operator:
My2DArray[1,3]

The only real disadvantage of this approach is that you can't easily
extract rows or columns like you can in some languages that support
true multidimensional arrays (support for which are already on the
feature-request list).
  Regards,
    Scott

> TIA
> 
> ------------------------------
> Leston Drake
> LetterPress Software, Inc.
> http://www.lpsoftware.com
> ------------------------------
> 
> 

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...

Reply via email to