On Tuesday, Jul 1, 2003, at 11:41 America/Chicago, Kerry Thompson wrote:

But I'm not. I'm getting the value, i.e., [135, 137, 0, 0, 0, 0]

Right.


What's really confusing me is that I'm getting what I expect from a
higher-order list.

No, you're not; you only think you are. In the unexpected result you get


[135, 137, 0, 0, 0, 0]

In the more complex list you get

["TB199": [135, 137, 81, 114, 0, 0], "TB53": [138, 158, 81, 114, 0, 0]]

But if you look at the example, you see you're still getting list[1]; the property for it, "31", is still being omitted. That is, both the results you're getting above are identical. you're getting the specific entry for a proplist at a given position and not the prop itself, in both cases.

So, how do I get the entire first element--the property list--from vpl?
Do I have to cobble it together with getPropAt and bracket access (or
getAt)?

Yes. You have to get both the prop and the list item and assemble them by hand into another proplist:



-- Welcome to Director -- vpl= ["TB199": [135, 137, 0, 0, 0, 0], "TB53": [138, 158, 11, 92, 0, 0]] prop = getPropAt ( vpl, 1 ) val = vpl[1] lNew = [:] lNew.addProp ( prop, val ) put lNew -- ["TB199": [135, 137, 0, 0, 0, 0]]


Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Developer | Structor, a presentation development/programming tool Info and demo | http://www.nightwares.com/structor/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/

[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