I thought I needed to somehow utilize the apostrophes, but I didn't
understand why this was done this way or why at the end "&&" were used.
Can anyone explain that to me?

Yes. As a convention, rather than do this:


put firstname & space & lastname

or:

put "John " & "Doe" --notice the space after John

you would say:

put firstname && lastname

or:

put "John" && "Doe"

The example of:

Put "the album '" & albumList[tRecord].pName &"' was released in " & tThis RecordYear & " by" && albumList[tRecord].pLabel

sticks with that convention most of the time (not all the time). The apostrophes was just a grammatical style choice to save on a few characters. You might usually put the name of the album inside quotes, which you can do like this:

put "the album" && quote & albumList[tRecord].pName & quote

Back to your example, modString = tempList[#tagTitle] would only make sense if tempList had a property entry tagTitle that was set to something. If it's set to a string, then the concatenation would work:

tempList = [#tagTitle: "some title",#tagYear: 1984]
put templist
-- [#tagTitle: "some title", #tagYear: 1984]
modstring = templist[#tagTitle]
put modstring && "hi"
-- "some title hi"
put modstring & "hi"
-- "some titlehi"

[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