Another oddity

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: 9951
Joined: Wed May 06, 2009 2:28 pm

Another oddity

Post by dunbarx » Wed Aug 28, 2024 5:56 pm

Now and then I find that LC does not register a line of code. For example, I might:

Code: Select all

put "X" into temp
put return after temp
put "Y" after temp
I expect to see "X" on line 1 and "Y" on line 2. In a stack today I could not for the life of me get LC to place a return after a line in a variable. Only after I added another line right after the first:

Code: Select all

put "d" & return after temp
did I see the "d' in the right place. I then commented out that line and tried again, and all worked just fine. I suspect that if I had quit LC and restarted, all would then have worked as well.

But just as with my "sticky" red "error" dots, which I still regularly have to finagle to get rid of, has anyone seen something like this?

Craig
Last edited by dunbarx on Wed Aug 28, 2024 6:55 pm, edited 2 times in total.

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

Re: Another oddity

Post by richmond62 » Wed Aug 28, 2024 6:26 pm

Possibly, just possibly, the quality is slipping.

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

Re: Another oddity

Post by dunbarx » Wed Aug 28, 2024 6:51 pm

Richmond.

I have not changed my LC version or my machine in quite a while, so I do not think it is "them". The error red dots hassle started perhaps two or three months ago, and I have seen the sort peculiarity in the mechanics of the code that I just described here and there forever. I only want to know if others have seen the same thing. Goblins are better dealt with if they live in more attics than just mine.

I think.

Craig

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

Re: Another oddity

Post by richmond62 » Wed Aug 28, 2024 8:23 pm

I expect to see "X" on line 1 and "Y" on line 2.
Erm: where do you 'see' temp?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7303
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Another oddity

Post by jacque » Thu Aug 29, 2024 5:02 pm

Since "return" has two possible uses, LC may have been confused. I always use cr to distinguish.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: Another oddity

Post by dunbarx » Fri Aug 30, 2024 2:06 am

Richmond.

I was in the SE.

Jacque.

You know, I am probably just lazy and old fashioned, but I have never used "cr" to format text, always "return". I get what you mean, knowing what "return" means in, say, a function call, and probably should switch.

But LC has never, for me, been confused that way, and in any case would not have "fixed" itself for no particularly good reason if the "wrong" form of return had any influence.

I think.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9953
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Another oddity

Post by FourthWorld » Sun Sep 01, 2024 8:26 pm

dunbarx wrote:
Wed Aug 28, 2024 5:56 pm
Now and then I find that LC does not register a line of code. For example, I might:

Code: Select all

put "X" into temp
put return after temp
put "Y" after temp
I expect to see "X" on line 1 and "Y" on line 2.
I'm unable to see anything other than what you expect, in both the debugger and when adding "put" to show it in the Message Box.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Talking LiveCode”