Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
I'm being told I have a "compilation error at line 2" (the line in question, above) and the error message goes on to say "Command: missing ',' near "into", char 26"
This is only my first couple of days into LiveCode but it doesn't seem there should be a need for a comma in that line.
What Sturgis said: "contents" is not in the language. It is very easy to assume that LiveCode speaks English. It does not, and it confuses new users that way.
And something else Sturgis said that bears looking into. When you put that "the" in front of a word that is NOT in the language, LiveCode assumes you are creating a custom property, in your case, named "contents", that will hold (or as you wrote it, already held) some kind of data. This is a powerful tool, and you really should experiment with it. But there was no such property set up beforehand, and though no error was thrown, nothing useful came out of it.
So do play with this marvelous program, and write back often. Read the dictionary, do the lessons and tutorials. Most importantly, make stacks of any and all kinds. an address book, a calculator, a metric converter, anything. There is no substitute for practice, and the simplest tasks will cause you enormous pain and frustration, as well as enormous satisfaction and triumph.
I took "the contents" out and just commanded put field in variable and things worked.
I appreciate the encouragement. It's English-like, as they claimed, but it's also not. That's my challenge, for sure. (I was an English literature major in college decades ago, but that background is not coming rushing to my aid right now.)
Still don't get the reference to the missing comma in the error message, though.
I've actually hit the same exact message a couple times lately. In my case, I had copy and pasted a handler from somewhere else and it seems some artifact got "transported" along in the paste.
Needless to say the message wasn't real informative! But at least I knew there was something wrong. (Ended up retyping the thing by hand and it worked. Still not sure exactly WHAT came along with the paste.