Don't "do" it

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!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

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

Don't "do" it

Post by dunbarx »

Thought I would start a new thread, since the old one is getting long in the tooth.

Say you have a valid string in the clickChunk (char 103 to 105 of field 10).

So:

Code: Select all

get "XYZ"
put it into the clickChunk  -- "LINE "A"
put it into char (word 2 of the clickChunk) to (word 4 of the clickChunk) of fld 10 --LINE "B"
In a standalone made for Windows and Mac:

-- line "A" works on Mac and one Windows 7 machine, but not on another Windows 7 machine.
-- line "B" works everywhere.

Now I have no problem solving a problem without understanding it, and this sort of touches on the haunted issues I had a few days ago. But anyone ever see this? Never mind the particular instance of nonsense I am dealing with, but anywhere? Is there something else that might be running on one machine that will prevent LC from executing that handler consistently?

Craig Newman
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Don't "do" it

Post by Mark »

Hi Craig,

Perhaps the clickChunk is flushed before the line gets executed. Your syntax in line A works fine on my Windows 10 machine. I expect there is something odd going on on the machines where it doesn't work for you.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Don't "do" it

Post by dunbarx »

Mark.

Wouldn't that be earth shattering news, that such a thing is machine dependent?

Craig
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Don't "do" it

Post by Mark »

Craig,

I don't see proof that it is machine dependent. At least not yet.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Don't "do" it

Post by dunbarx »

Mark,

I doubt I can prove it to anyone from here.

I will try it on other machines. I can do this on about 15, and report back.

Craig
Post Reply