what i would do is to build the internal lists with local variables,
then put together the outer list with the pieces. easier to debug,
methinks, because you can check the pieces first. 
also, are you sure you can have two elements in the list with the same
property name (all those #aWords)?

beyond that, i'm not sure what's happening. what does the list look like
with this routine? you gave us the intended structure, but not as is it
so far...
--bh


Kerry Thompson wrote:
> 
> This should be simple, but I'm getting tangled up in the dot syntax--and
> maybe in multidimensional arrays, too. It's been a long week this month.
> 
> I want to display a list of words, chosen from several lists. Ideally, I'd
> like to do something like:
> 
> wordList = masterList[n]
> repeat with i = 1 to wordList.count
>    put wordList.aWord[i]
> end repeat
> 
> The line I am looking to convert to a list looks like this:
> "Start;Lingo;C;Pascal"
> 
> Currently I have this code to create the list:
> the itemDelimiter = ";"
> repeat for i = 1 to numLines
>     theText = masterText.line[i].item[1] --I know this works
>     if theText = "Start" then
>        addProp(gWordList, #listStart, [:]
>        repeat with j = 2 to masterList.line[i].item.count
>           addProp(gWordList, #aWord, masterList.line[i].item[j]
>        end repeat
>     end if
> end repeat
> 
> I know I'm not building the list right--I think I want a list something
> like this:
> 
> [#listStart: [#aWord: "Lingo", #aWord: "C", #aWord: "Pascal"], #listStart
> [#aWord: "Apple", #aWord, "Dell", #aWord, "Gateway"]]
> 
> I've been working on this too long, and I'm all turned around. Where
> (probably multiple places) am I going wrong?
> 
> Cordially,
> Kerry Thompson
> Learning Network
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/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!]

-- 
R. Bhakti Klein
Lingo Programmer, Scientific Learning
http://www.ScientificLearning.com
http://www.BrainConnection.com
**
Baritone, Wicki6
http://www.wicki6.com
***
"On Earth, you can only do little things;
but you can do them with a lot of Love."
                              -- Mother Theresa

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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