Search found 100 matches

by Cairoo
Tue Oct 24, 2023 1:44 pm
Forum: Software Engineering
Topic: Run the same stack from two LC installs
Replies: 22
Views: 69638

Re: Run the same stack from two LC installs

Machine A will not know about machine B's changes and vice versa. If machine A saves its changes, and then machine B saves its changes, machine A's changes will be lost.
by Cairoo
Mon Oct 23, 2023 7:31 pm
Forum: Off-Topic
Topic: In Search of the Lonesome Yodel
Replies: 6
Views: 4042

Re: In Search of the Lonesome Yodel

I saw at least die 8.0.2 DP-2 Windows version there. The Mac and Linux versions there show version 8.0.2. I'm not sure if they are DP-2, though. You may have to select "Show all" in die "Download options" pane. EDIT: Correction -- sorry, I see the 8.2.0 DP-2 Windows version is there, but only for Wi...
by Cairoo
Mon Oct 23, 2023 5:35 pm
Forum: Off-Topic
Topic: In Search of the Lonesome Yodel
Replies: 6
Views: 4042

Re: In Search of the Lonesome Yodel

by Cairoo
Wed May 03, 2023 8:27 pm
Forum: Talking LiveCode
Topic: empty and the number 0
Replies: 15
Views: 10006

Re: empty and the number 0

I also think it's a LC bug, so I posted my proof just to tease you all.

I knew that LC treats empty like the number zero in arithmetic operations. I just did not expect that the <= operator would disagree wirh the < and = operators when comparing empty with the number 0.
by Cairoo
Wed May 03, 2023 7:19 pm
Forum: Talking LiveCode
Topic: empty and the number 0
Replies: 15
Views: 10006

Re: empty and the number 0

What made you think that your string of trials would lead you to the conclusion that empty had anything to do with 0? Just LC's logic. If LC says (empty < 0) is false, and (empty > 0) is false, but (empty <= 0) is true, and (empty >= 0) is true, then logically (empty = 0) must be true. I can also a...
by Cairoo
Wed May 03, 2023 7:08 pm
Forum: Talking LiveCode
Topic: empty and the number 0
Replies: 15
Views: 10006

Re: empty and the number 0

richmond62 wrote:
Wed May 03, 2023 6:56 pm
empty is BIGGER than 0
LC told me it's not
richmond62 wrote:
Wed May 03, 2023 6:56 pm
empty is SMALLER than 0
LC told me it's not
by Cairoo
Wed May 03, 2023 6:14 pm
Forum: Talking LiveCode
Topic: empty and the number 0
Replies: 15
Views: 10006

empty and the number 0

Just some LC silliness to brighten your day: By testing the following statements one-by-one in the message box, I can't help but conclude that empty is equal to 0: put (empty < 0) put (empty > 0) put (empty <= 0) put (empty >= 0) And then to spite me, testing the following statement disproved my con...
by Cairoo
Fri Apr 07, 2023 8:54 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Carriage Return
Replies: 9
Views: 6482

Re: Carriage Return

Their effect is identical precisely because CR and LF in LiveCode have been defined as control character 10, even though they were supposed to be different.
by Cairoo
Thu Apr 06, 2023 10:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Carriage Return
Replies: 9
Views: 6482

Carriage Return

Dear fellow LiveCode users, Just to help prevent some of you getting a bit confused as I have, please note that at the time of my writing this post, the word "CR" in LiveCode does NOT mean control character 13. Even though CR is supposed to mean "Carriage Return", the LiveCode engine has CR meaning ...
by Cairoo
Thu Apr 06, 2023 9:09 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Regex to remove multiple return characters
Replies: 20
Views: 9563

Re: Regex to remove multiple return characters

Sorry everyone, I found the reason for what seemed to be a bug in the replaceText function, but isn't. My confusion came as a result of CR and LF both being considered by LiveCode as control character 10. I expected CR to mean control character 13, but according to the LC dictionary, return, CR and ...
by Cairoo
Thu Apr 06, 2023 7:26 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Regex to remove multiple return characters
Replies: 20
Views: 9563

Re: Regex to remove multiple return characters

@stam, I agree with you that the regex "\R" is the correct one. I should have said, it seems like LiveCode's replaceText function wrongly interprets the regex "\n" as "\r", and doesn't correctly interpret the regex "\r". Sorry about swapping the two. Here's what convinced me of that: This code: loca...
by Cairoo
Thu Apr 06, 2023 6:37 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Regex to remove multiple return characters
Replies: 20
Views: 9563

Re: Regex to remove multiple return characters

stam wrote:
Thu Apr 06, 2023 6:25 pm
...
if you want to capture all forms of a newLine char, use \R, not \r or \n....
Indeed the correct regex. It still bugs me that LiveCode wrongly interprets "\r" as "\n", though.
by Cairoo
Thu Apr 06, 2023 6:22 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Regex to remove multiple return characters
Replies: 20
Views: 9563

Re: Regex to remove multiple return characters

Will also work without "... lines of ..."! Yes, Klaus, I stand corrected. Something I've noticed while looking for an actual regex solution is that LiveCode wrongly interprets the regex "\r" as "\n". So the following regex-based code should work, but doesn't: put replaceText(replaceText(replaceText...
by Cairoo
Thu Apr 06, 2023 4:47 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Regex to remove multiple return characters
Replies: 20
Views: 9563

Re: Regex to remove multiple return characters

Klaus wrote:
Thu Apr 06, 2023 3:41 pm
Hi James,

sorry I have no idea of REGEX, but doesn't:

Code: Select all

filter fld "xyz" without empty
do the trick?

Best

Klaus
What Klaus said, except you may have to use the form "filter lines of".

Gerrie
by Cairoo
Thu Mar 23, 2023 6:58 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code to make popup menu show options without clicking on it.
Replies: 23
Views: 8226

Re: Code to make popup menu show options without clicking on it.

@Craig,

Yes I have a Windows machine and the popup command works. We both came up with the same idea just a few minutes apart, but your button is named slightly better than mine.

- Gerrie

Go to advanced search