quotes question

larry at significantplanet.org larry at significantplanet.org
Wed Oct 8 12:30:15 EDT 2014


Hello All,

I've been given some good advice from a couple of people on this list about being sure to put quotes around object names.

So I'm going back through my code and doing that.

Question: If I'm using a variable as part of a field name, should it have quotes around it?
In other words, which of the two examples below is the right way to do it?

create field
set the name of the last field to (myfield & x)

OR

create field
set the name of the last field to ("myfield" & x)

??

Thanks
Larry


More information about the use-livecode mailing list