A Field by any other name...

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

A Field by any other name...

Post by RossG » Tue Nov 08, 2016 12:09 pm

I have a number of scrolling list fields
ListField1 to ListField4.

This worked until recently when I got an
error on a line which put values into ListField1
claiming that there was no such object.

After a change of field name the problem stopped -
for a while - then started again at the same line.

Sometimes this error arises even after the first
cycle has put info into the field - then fails to recognize it
on the second cycle.

Have I done something silly (again)?
Have I contravened the the naming rules
(to which I can't find a reference)?
Am I expecting too much from LC7.1.4?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: A Field by any other name...

Post by LiveCode_Panos » Tue Nov 08, 2016 12:28 pm

Hi RossG,

Just wondering, are those 4 fields on the same card?

Best,
Panos
--

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

Re: A Field by any other name...

Post by dunbarx » Tue Nov 08, 2016 3:10 pm

Hi.

Certainly no naming conflict exists.

Panos asked an important question, since the error generally indicates that the engine cannot find the object, not necessarily that the object does not exist at all, but might be somewhere else temporarily.

So check that no handler locks the screen and navigates somewhere else, as he suggested. Perhaps search for all screen locking lines of code, comment them out, and step through whatever handler is causing the issue. See if you moved.

Craig

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: A Field by any other name...

Post by RossG » Mon Nov 14, 2016 12:56 am

Fixed this problem but not sure how.

I removed all the lock/unlock screens and
replaced only one or two which were
necessary for view comfort. Also made
a few minor changes so who knows?

Still, hard to believe that LC can't find a field.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

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

Re: A Field by any other name...

Post by dunbarx » Mon Nov 14, 2016 2:06 am

Hmmm

Well, it is either operator malfunction or gremlins, Both have happened to me.

Craig

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: A Field by any other name...

Post by SparkOut » Mon Nov 14, 2016 8:15 am

Did you use the variable watcher when testing? I don't know what versions apply but I have hit a bug where the VW caused that error in v 9.0 dp1 on Windows 10

Post Reply