Oh Man, XML is rather cool with arrays!!!!!

Richard Gaskin ambassador at fourthworld.com
Tue Apr 13 22:34:46 EDT 2004


Meitnik at aol.com wrote:

> Yes, nothing like learning a new tool...:)
> someone share a high five with me, please ;-)
> 
> its a backdoor to doing structs for sure...without the icky . syntax... ;-)

Another quasi-struct option is to use associative arrays.  With the 
split command you can easily turn simple delimited text into array 
elements, and the combine command lets you convert them back again.

So you could have something like:

Name<tab>Richard<cr>
City<tab>Los Angeles<cr>
Company<tab>Fourth World<cr>

And put it into an array in one line:

  split tUser with return and tab

....and access elements by name:

  get tUser["Name"]

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com


More information about the use-livecode mailing list