Search found 67 matches

by rkriesel
Fri Jun 07, 2019 10:05 am
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 801

Re: Fastest method of comparing two lists.

rkriesel wrote:
Fri Jun 07, 2019 9:01 am
You can just feed your long delimited lists into commands difference and union.
should have been:
You can just split your long delimited lists and then feed them into commands difference and union.
by rkriesel
Fri Jun 07, 2019 9:01 am
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 801

Re: Fastest method of comparing two lists.

Have you tried commands union and difference? While I have not tried these commands reading the dictionary makes me think that can't use them with the arrays I presently use. You don't seem to need the arrays you presently use. You can just feed your long delimited lists into commands difference an...
by rkriesel
Fri Jun 07, 2019 6:04 am
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 801

Re: Fastest method of comparing two lists.

Hi, Simon. Could there be a file name that's used for two different files? Could there be two file names that have the same content? Have you tried commands union and difference? If I understand your requirement, you can get what you want like this: command digest @rUnion, pNewBatch, @rNewLines diff...
by rkriesel
Wed Jul 25, 2018 9:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 50
Views: 4067

Re: How to sort out this

hi rkriesel, ... So bwmilby's script wins the race ;) Despite that, you and bwmilby both won my heart :D Here's a version of bwmilby's handler that's a little simpler (because it uses booleans instead of counters) and therefore a little easier to read and a little faster (a few percent). And it sho...
by rkriesel
Tue Jul 24, 2018 10:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 50
Views: 4067

Re: How to sort out this

alemrantareq wrote:
Tue Jul 24, 2018 6:57 pm
hi bwmilby, if you are talking about this:

Code: Select all

set the text of fld "f1" to singletonKeys(Temp, ":")
still no success, got my LC crashed while filtering :(
What does "got my LC crashed" mean? Do you have any evidence to share?
by rkriesel
Mon Jul 23, 2018 8:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 50
Views: 4067

Re: How to sort out this

bogs wrote:
Mon Jul 23, 2018 7:43 pm
That is pretty slick, rkriesel, pretty slick indeed.
Thanks, bogs. I just decided to compare a similarly instrumented edition of bwmilby's version (i.e., without accessing any field).

bwmilby's version won by about a second. That's slicker.

-- Dick
by rkriesel
Mon Jul 23, 2018 5:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 50
Views: 4067

Re: How to sort out this

The goal is to completely remove any key that is repeated (not just the duplicates). ... Hi, Alemrantareq. Here's a version which finds 457999 singleton keys in your file of 1373240 lines in under 6 seconds here. function singletonKeys pLines, pItemDelimiter local tAllKeys, tPriorKey, tDuplicatedKe...
by rkriesel
Fri Jul 20, 2018 6:07 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 50
Views: 4067

Re: How to sort out this

... but the actual result I want is: matsas007@server1:info3143 thedevilcry95@server8:info50289 devilcry537@server7:info3656 xuanphungbd@server3:info51343 44boysatthu98@server5:info96315 tuananhhau@server1:info53476 ... Hi, almenrantareq. Your earlier description suggests you'd also want these: boy...
by rkriesel
Tue May 15, 2018 12:53 am
Forum: Talking LiveCode
Topic: mouseDown cripples menuPick
Replies: 17
Views: 1731

Re: mouseDown cripples menuPick

Code: Select all

on mouseDown
   exit to top
end mouseDown
Now the menu button does not work.
<snip>
Is this OK with everyone?
A system event handler that does not pass risks failure.

mouseDown would happen before menuPick. Why should something happen after exit to top?

-- Dick
by rkriesel
Wed Mar 14, 2018 12:22 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 50
Views: 4067

Re: How to sort out this

I want to filter a list without dups, but these dups are not lines, just a string before the '@' sign. Hi, alemrantareq. Here's a technique that derives your desired output without invoking repeat: function digestRecords t split t using return and "@" delete variable t["rawdata"] combine t using re...
by rkriesel
Wed Mar 15, 2017 9:52 am
Forum: LiveCode Builder
Topic: array key does not exist ...
Replies: 5
Views: 1753

Re: array key does not exist ...

For the record, a version of what I needed is here: http://forums.livecode.com/viewtopic.php?f=93&t=27408
--Dick
by rkriesel
Tue Mar 14, 2017 5:46 am
Forum: LiveCode Builder
Topic: array key does not exist ...
Replies: 5
Views: 1753

Re: array key does not exist ...

Trevor, or anyone else who knows, since I still haven't found it in the docs, please share how to "define each and every key you use in LCB."

-- Dick
by rkriesel
Tue Mar 14, 2017 12:04 am
Forum: LiveCode Builder
Topic: array key does not exist ...
Replies: 5
Views: 1753

Re: array key does not exist ...

Thank you, Trevor.

I'd like to read about that, but I didn't see it in the docs. Could you please tell me where to look?

-- Dick
by rkriesel
Mon Mar 13, 2017 9:42 pm
Forum: LiveCode Builder
Topic: array key does not exist ...
Replies: 5
Views: 1753

array key does not exist ...

The error message arises from the following LCB module and LCS script. module: library community.livecode.rkriesel.putInto2dArray metadata title is "putInto2dArray" metadata version is "0.0.1" metadata author is "Dick Kriesel" public handler putInto2dArray ( inout xArray as Array ) put "three" into ...
by rkriesel
Mon Mar 13, 2017 9:02 pm
Forum: LiveCode Builder
Topic: "Identifier 'ScriptObject' not declared"
Replies: 2
Views: 1210

Re: "Identifier 'ScriptObject' not declared"

Thank you, Ali, for the quick reply with the answer I needed.

-- Dick

Go to advanced search