Search found 64 matches

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: 3575

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: 3575

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: 3575

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: 3575

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: 3575

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: 1488

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: 3575

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: 1647

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: 1647

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: 1647

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: 1647

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: 1123

Re: "Identifier 'ScriptObject' not declared"

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

-- Dick
by rkriesel
Wed Mar 08, 2017 10:47 pm
Forum: LiveCode Builder
Topic: "Identifier 'ScriptObject' not declared"
Replies: 2
Views: 1123

"Identifier 'ScriptObject' not declared"

The subject error message appears in the 9.0.0dp6 Extension Builder on macOS 10.12.3 when compiling the following LCB library: library community.livecode.rkriesel.libFoo metadata title is "libFoo" metadata version is "0.0.1" metadata author is "Dick Kriesel" public handler foo ( ) variable tScriptOb...
by rkriesel
Thu Feb 09, 2017 10:17 am
Forum: Talking LiveCode
Topic: Storing large amounts of data in a script only stack
Replies: 6
Views: 1565

Re: Storing large amounts of data in a script only stack

... But I wonder if there is a better way ... Hi, Simon. Here's an example of a technique that builds an array from data embedded in a script-only stack: local sArray on preOpenStack loadArray 5 -- for five lines of data end preOpenStack command loadArray p get line -p - 1 to -2 of the script of me...
by rkriesel
Wed Dec 14, 2016 2:37 am
Forum: Bug Triage
Topic: regex can degrade performance of subsequent statements
Replies: 21
Views: 4476

Re: regex can degrade performance of subsequent statements

I'm afraid that the title of this thread is a bit misleading :( Looking closely at the 2 functions tdz1() and tdz2(), it's easy to see that both functions are using the same regex! So the regex is not the culprit here. I agree about the culprit here. However, "using regex in LiveCode can degrade .....

Go to advanced search