Reserved word??

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Reserved word??

Post by dunbarx » Tue Aug 25, 2015 5:24 pm

I almost died trying to figure this out.

I simply set a custom property named "boardFactor" with an array. But the property would sometimes not set, that is, its contents would be empty, and if it did, it could not then be further modified.

Just changing the name to something else, with no other changes in how it is populated or used, made the problem go away.

Something about the name itself? Or can a custom property corrupt itself?

Craig Newman

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10127
Joined: Fri Feb 19, 2010 10:17 am

Re: Reserved word??

Post by richmond62 » Tue Aug 25, 2015 5:58 pm

Maybe the engine cannot spell and read "boredFactor" . . .

All I can see in the Dictionary are scrollbarFactor and scaleFactor.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Reserved word??

Post by dunbarx » Tue Aug 25, 2015 7:13 pm

Richmond.

The funny thing is that I started having trouble with all this with an earlier name, "currentFactor". This worked for months, and then I started getting errors. So I changed to "boardFactor", just because I rewrote the whole thing, changing as much as I could, but which never worked well at all.

I tried "bob" which was just fine. It never occurred to me that the name itself would resolve the problem. The new name is "philipsFactor" which seems perfect stable.

Craig

Post Reply