Re: How to check if a group contains a specific control ?

2024-08-24 Thread Dick Kriesel via use-livecode
yet another alternative: if the long id of ends with the long id of then … this catches controls whose ownership includes intervening grouping between your control and your group — Dick > On Aug 23, 2024, at 5:48 AM, Brian Milby via use-livecode > wrote: > > Another alternative. > > If t

Re: Slow stack problem

2024-07-02 Thread Dick Kriesel via use-livecode
> On Jun 28, 2024, at 3:15 AM, Neville Smythe via use-livecode > wrote: > > I have a solution or at least a workaround Hi, Neville. You may find a worthwhile improvement in speed if you avoid referring to the Unicode lines by their line numbers (as in "line k of fff"). Here's a way: functi

Re: Variable Watcher disappeared

2023-08-08 Thread Dick Kriesel via use-livecode
Hi, Bob. The bottom pane reappears to show search results, so search for something. — Dick > On Aug 8, 2023, at 9:28 AM, Bob Sneidar via use-livecode > wrote: > > Hi all. > > Not sure how I did it but I can no longer see the variables while debugging. > The bottom pane has disappeared and n

Re: No progress updates on LC 10. Am i the only one who is concerned?

2023-07-25 Thread Dick Kriesel via use-livecode
> On Jul 25, 2023, at 7:49 PM, Geoff Canyon via use-livecode > wrote: > > So, not to be too much of an apologist, but the issue doesn't seem like a > showstopper to me. This is just a crashing bug to fix before RC1. Let the show go on! — Dick ___ u

Re: No progress updates on LC 10. Am i the only one who is concerned?

2023-07-25 Thread Dick Kriesel via use-livecode
> On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode > wrote: > > Maybe a silly question, but that issue lists "turn on bracket completion" > as a step to reproduce. If bracket completion is off, is it safe? Hi, Geoff. I filed the report. With bracket completion off, I saw no such p

Re: What is your best practice for setting a script in a script?

2023-07-15 Thread Dick Kriesel via use-livecode
> On Jul 15, 2023, at 8:06 AM, Paul Dupuis via use-livecode > wrote: > > So in the instances where you have a script that creates an object and then > sets the script of that object (example below), what is you best practice for > having the script in a script and still be readable? Hi, Paul

Re: Confirm sort container order...

2022-04-04 Thread Dick Kriesel via use-livecode
> On Mar 30, 2022, at 2:16 PM, Paul Dupuis via use-livecode > wrote: > > sort lines of tText by word 1 of each & word 2 of each & word 3 of each Hi, Paul. The only feature missing is padding the first two words: sort tText by pad( word 1 of each ) & pad( word 2 of each ) & word 3 of each

Re: Counting Syllables

2022-03-23 Thread Dick Kriesel via use-livecode
> On Mar 22, 2022, at 7:25 AM, Rick Harrison via use-livecode > wrote: > > An existing database would make things a lot easier. You could scrape an online dictionary to obtain the syllabification for each given word. For example, if you investigate https://www.dictionary.com/browse/syllabi

Re: Speaking of Filter and Match...

2022-03-14 Thread Dick Kriesel via use-livecode
> On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode > wrote: > > On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote: >> I have a field with about a thousand lines with many duplicate lines, and I >> want to delete the duplicates. Seems like this should be simple but I am >> run

Re: can I filter lines with a list of alternative OR strings?

2022-03-06 Thread Dick Kriesel via use-livecode
> On Mar 3, 2022, at 2:30 AM, David V Glasgow via use-livecode > wrote: > > I can filter text using a single term plus a numerical range s eg: > *re 1[0-5]* > matching a text stem “re “ followed by any one of 10, 11, 12, 13, 14 or 15 > > But is there a form where the alternatives are also tex

Re: Speed up a slow loop

2022-03-06 Thread Dick Kriesel via use-livecode
> On Mar 2, 2022, at 1:57 PM, J. Landman Gay via use-livecode > wrote: > ... > repeat for each line l in pList -- pList is the user word list >if sDictFile[l] = true then put l & cr after tCheckedList >else put l & cr after tNonWords >wait 0 with messages -- prevent ANRs > end repe

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Dick Kriesel via use-livecode
> On Jan 21, 2021, at 2:34 AM, Keith Clarke via use-livecode > wrote: > I was just keen to understand why offset wasn’t happy with the ‘not(tab)’ in > this instance. expression "not(tab)" evaluates to true, which doesn’t serve your purpose — Dick __

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Dick Kriesel via use-livecode
> On Jan 21, 2021, at 2:25 AM, Dick Kriesel via use-livecode > wrote: > > Hi, Keith. You could test each character until you find a tab: > correction: until you find one that’s not a tab ___ use-livecode mailing li

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Dick Kriesel via use-livecode
> On Jan 21, 2021, at 1:30 AM, Keith Clarke via use-livecode > mailto:use-livecode@lists.runrev.com>> wrote: > > Please can anyone advise on the correct syntax for trying to find the first > non-tab character offset in a string Hi, Keith. You could test each character until you find a tab: f

Re: directory tree -> array

2020-02-01 Thread Dick Kriesel via use-livecode
> On Jan 22, 2020, at 10:17 AM, Richard Gaskin via use-livecode > wrote: > > I stumbled across a code challenge for y'all, one that seems seductively > simple but I don't think it is: > > What is the simplest way to build an array that reflects the files and > folders within a given folder?

Re: valueDiff for arrays?

2018-08-07 Thread Dick Kriesel via use-livecode
> On Aug 7, 2018, at 9:29 PM, Jerry Jensen via use-livecode > wrote: > >> On Aug 7, 2018, at 8:35 PM, Mark Wieder via use-livecode >> wrote: >> >> On 08/07/2018 07:57 PM, Dick Kriesel via use-livecode wrote: >>> On Aug 7, 2018, at 5:47 PM,

Re: valueDiff for arrays?

2018-08-07 Thread Dick Kriesel via use-livecode
On Aug 7, 2018, at 5:47 PM, Alex Tweedly via use-livecode wrote: > > Is there an easy way to test whether an array is (currently) a sequence array > ? > > something easier than > put the extents of tArray into tmp > if item 1 of tmp = 1 AND item 2 of tmp = the number of elements in tAr

Re: Sender of send in time

2018-07-14 Thread Dick Kriesel via use-livecode
> On Jul 13, 2018, at 1:26 AM, hh via use-livecode > wrote: > >> Bob S. wrote: >> Something in my scripts is sending a selectionChanged message in >> time to a specific datagrid when it shouldn't. How do I determine >> the sender of a send in time message? > > Simply use a a parameter: > >

Re: Behaviors not honoring script local variables??

2018-06-26 Thread Dick Kriesel via use-livecode
> On Jun 26, 2018, at 1:13 PM, Bob Sneidar via use-livecode > wrote: > ... > do "put " & quote & aStackConstants [tConstant] & quote & " into " & > tConstant Hi, Bob. If you wanted simpler code, that could be just do "put aStackConstants[ tConstant ] into " & tConstant — Dick _

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Dick Kriesel via use-livecode
> On Apr 26, 2018, at 12:14 PM, Brian Milby via use-livecode > mailto:use-livecode@lists.runrev.com>> wrote: > > tPath can also be thought of as a (proper) list which makes a little more > sense. Mark W would need to answer the why. The following excerpts provide a quote from Mark W: > On Mar