<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<STYLE><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></STYLE>
<META content="MSHTML 6.00.6000.16945" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV id=idOWAReplyText58228 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Can't remember offhand - need to check it out next week...</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Dave Burnett<BR><B>Sent:</B> Tue 29/12/2009 13:32<BR><B>To:</B> Xerte list<BR><B>Subject:</B> RE: [Xerte] Accessing associative arrays via variable?<BR></FONT><BR></DIV>
<DIV><BR><FONT face=Verdana>Julian, before I go much further down this road, I ran across this and was wondering if you could elaborate:</FONT><FONT face=Verdana><BR></FONT><FONT face=Verdana><BR></FONT><FONT face=Verdana>"I commented out that functionality as I wasn't too happy with the way it</FONT><FONT face=Verdana> </FONT><FONT face=Verdana>worked,.."<BR><BR></FONT>http://lists.nottingham.ac.uk/pipermail/xerte/2009-April/001421.html<BR><BR>Hope Santa didn't bring too many lumps of coal to the Xerte listers.<BR><BR>Dave<BR><BR><BR>
<HR id=stopSpelling>
Subject: RE: [Xerte] Accessing associative arrays via variable?<BR>Date: Sun, 27 Dec 2009 22:46:43 +0000<BR>From: Julian.Tenney@nottingham.ac.uk<BR>To: xerte@lists.nottingham.ac.uk<BR><BR>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
<DIV id=ecxidOWAReplyText83440 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>b = new Object();<BR>b.blah = 'value';</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>v='blah';<BR>debug(b[v]); //works for me</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Dave Burnett<BR><B>Sent:</B> Sun 27/12/2009 21:49<BR><B>To:</B> Xerte list<BR><B>Subject:</B> RE: [Xerte] Accessing associative arrays via variable?<BR></FONT><BR></DIV>
<DIV>help_defs = new Object();<BR>helps_defs.Atomic = "Roosters are atomic";<BR>debug(helps_defs.Atomic); // gives me "Roosters are atomic"<BR>
<DIV id=ecxecxidOWAReplyText44362 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>myVar = 'Atomic';</FONT></DIV>
<DIV dir=ltr><FONT face=Arial>debug(help_defs[myVar]); // gives me u</FONT>ndefined.<BR></DIV></DIV><BR><BR><BR>
<HR id=ecxstopSpelling>
Subject: RE: [Xerte] Accessing associative arrays via variable?<BR>Date: Sun, 27 Dec 2009 21:23:56 +0000<BR>From: Julian.Tenney@nottingham.ac.uk<BR>To: xerte@lists.nottingham.ac.uk<BR><BR>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
<DIV id=ecxecxidOWAReplyText44362 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>myVar = 'Atomic';</FONT></DIV>
<DIV dir=ltr><FONT face=Arial>debug(help_defs[myVar]);</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Dave Burnett<BR><B>Sent:</B> Sun 27/12/2009 18:05<BR><B>To:</B> Xerte list<BR><B>Subject:</B> [Xerte] Accessing associative arrays via variable?<BR></FONT><BR></DIV>
<DIV><BR>help_defs = new Object();<BR>helps_defs.Atomic = "Roosters are atomic";<BR>debug(helps_defs.Atomic); // gives me "Roosters are atomic"<BR><BR>Can I sub a variable into the place of .Atomic in that last statement?<BR><BR>Sort of like in AW, to call a value from a property list using a variable for the property name I'd use:<BR><BR>Trace(my_prop_list[Symbol("a"^some_variable)]) <BR>
<HR>
Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <A href="http://clk.atdmt.com/GBL/go/177141664/direct/01/">Sign up now.</A> </DIV><BR>
<HR>
Hotmail: Powerful Free email with security by Microsoft. <A href="http://clk.atdmt.com/GBL/go/171222986/direct/01/">Get it now.</A> </DIV><BR>
<HR>
Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <A href="http://clk.atdmt.com/GBL/go/177141664/direct/01/" target=_new>Sign up now.</A> </DIV></BODY></HTML>