Search found 5363 matches

by bogs
Thu Apr 03, 2025 8:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LiveCode Programming Support for Beginners?
Replies: 5
Views: 3349

Re: LiveCode Programming Support for Beginners?

Good thing, as I have apparently been away from the language long enough to probably need to stay here :roll:
by bogs
Thu Apr 03, 2025 12:04 pm
Forum: Linux
Topic: Frequent Crash of KDE Plasma from LiveCode
Replies: 2
Views: 56060

Re: Frequent Crash of KDE Plasma from LiveCode

Hi again, Has anyone encountered an issue on KDE Plasma 6 where LiveCode seems to trigger a crash and restart of the shell? Like the taskbar, desktop and such disappear and are restarted for doing seemingly normal stuff in LiveCode? I'm running LiveCode 10.0.0 and doing stuff as simple as opening a...
by bogs
Tue Apr 01, 2025 1:30 pm
Forum: Off-Topic
Topic: Low Code News
Replies: 5
Views: 2738

Re: Low Code News

And I always thought that most reasonably educated people were aware of those things. Means nothing to me, although I would point out that generalities like "most", "reasonably", "educated", mean different things to different people. I have never adhered to the belief that education stops at some p...
by bogs
Tue Apr 01, 2025 1:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LiveCode Programming Support for Beginners?
Replies: 5
Views: 3349

Re: LiveCode Programming Support for Beginners?

Please tell us what exactly you have tried so far. Um... I tried using the set the text of field command but it didn't work. <chuckle> As Klaus's examples demonstrate, "put" is the most commonly used to set the value of a variable, put text into a field, put data into a file, display text in the me...
by bogs
Sun Mar 30, 2025 11:48 am
Forum: Off-Topic
Topic: Low Code News
Replies: 5
Views: 2738

Re: Low Code News

Low code news? I guess since I didn't know there was any such thing, it explains my missing the picture, but why would the source of the picture mean anything? I would congratulate you on knowing more about the subtle differences between Russian and Bulgarian languages than I do, though that would n...
by bogs
Thu Mar 13, 2025 9:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Copy the Last Line of a .txt file
Replies: 17
Views: 29288

Re: Copy the Last Line of a .txt file

Err, but 18 months later? I wasn't here for a long LONG time (and really still am not), however, I did not resurrect this thread and bring it to my own attention, the post that did that was made by the OP, 1 day before my reply. Re: Copy the Last Line of a .txt file by trags3 » Tue Mar 11, 2025 3:4...
by bogs
Wed Mar 12, 2025 7:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Copy the Last Line of a .txt file
Replies: 17
Views: 29288

Re: Copy the Last Line of a .txt file

To accomplish this I want to read the last line in the appropriate file and populate the card with the data. If the goal is simply to get the last line of a file, assuming you have the path to the file already in a variable, all you should need is put the last line of url("File:" & myFilePath) into...
by bogs
Wed Mar 12, 2025 6:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Get the last two columns
Replies: 34
Views: 36606

Re: Get the last two columns

Bogs. I created a list of 100 million lines, each line containing five chars separated by tabs, about one GB. To extract the last two items from each line into a new line in a new variable took 46 seconds. This on an M2 Mac Mini. Craig I suspect a lot of the delay in the testing bogs did might have...
by bogs
Tue Mar 11, 2025 9:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Get the last two columns
Replies: 34
Views: 36606

Re: Get the last two columns

Bogs, I created a list of 100 million lines, each line containing five chars separated by tabs, about one GB. To extract the last two items from each line into a new line in a new variable took 46 seconds. This on an M2 Mac Mini. Craig I don't know that an m2 mac mini qualifies as a 'severely limit...
by bogs
Thu Feb 27, 2025 6:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Get the last two columns
Replies: 34
Views: 36606

Re: Get the last two columns

I suspect it did not grow to that size in a jump heh, but likely over a long LONG period of time, and possibly through several different programmers such as the OP being the latest. That it was allowed to grow to such a size tells me that no one thought to break it down into smaller subsets, which i...
by bogs
Thu Feb 27, 2025 4:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Get the last two columns
Replies: 34
Views: 36606

Re: Get the last two columns

I was wondering what sort of dataSet was so poorly formed that the "items" within each of its rows was so mangled. You can see this problem being made every time you see a program that doesn't test for input (if you can form a test for the input, if you can't you can still delimit it properly) or, ...
by bogs
Thu Feb 27, 2025 2:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Get the last two columns
Replies: 34
Views: 36606

Re: Get the last two columns

Sparkout <sic> But I just ran a test with a variable with ten million lines, and the two actions take the same time. It occurs to me that this post adds nothing to the discussion. I disagree, I think it added considerable value, since you actually tested it instead of making assumptions, and then r...
by bogs
Wed Feb 26, 2025 3:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Get the last two columns
Replies: 34
Views: 36606

Re: Get the last two columns

So: obviously itemDelimiter and columnDelimiter work differently. Well, they delimit different things, certainly. There is a rowDelimiter as well and it delimits... wait for it... ROWS !!! :twisted: In all those posts above, I do not believe I posted the link to the data set I used, here that is if...
by bogs
Wed Feb 26, 2025 3:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Get the last two columns
Replies: 34
Views: 36606

Re: Get the last two columns

Hey bogs, why would you update the field like that in the loop? A) field uodates are a hefty overhead B) you have two statements that put data into an indexed line, which means that twice within each loop the engine has to count through to the index to update each. Surely a more comparative test wo...
by bogs
Tue Feb 25, 2025 7:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Get the last two columns
Replies: 34
Views: 36606

Re: Get the last two columns

Since I was bored, I got a (relatively) large dataset (53+ meg.) I was pretty sure was *not* corrupted and ran it through some of the different ways to get the result you were looking for. The dataset came from the government and had about 17 columns all told. The code for the array method used: on ...