[Ann] MTML Pull-Parser Multi-Dimensional Array
Mark Brownell
gizmotron at earthlink.net
Fri Mar 26 16:50:16 EST 2004
Hi,
Dimensional Arrays:
This thing is not a real array within an array, it just acts like one.
It provides a way to stare the data as MTML, like simple XML. This
version is created with functions that can be copied to your own
scripts.
Paste this into the message window:
go URL "http://www.gizmotron.org/revolution/dimensionalList.rev"
-- see stack scripts for functions
-- function addArray dataString, spotArray, theData
-- Note: addArray() will replace data that already exists in the
dataString
-- Example for adding multi-dimensional data:
-- put addArray(myMTMLDataString, "[1][4][5]", "John Doe") into field
"showMTML"
-- put addArray(myMTMLDataString, "1,4,5", "John Doe") into field
"showMTML"
-- see stack scripts for functions
-- function getArray dataString, spotArray
-- Example for getting multi-dimensional data:
-- put getArray(myMTMLDataString, "[1][4][5]") into field "showData"
-- put getArray(myMTMLDataString, "1,4,5") into field "showData"
Mark Brownell
Gizmotron Graphics
More information about the use-livecode
mailing list