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:

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

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-27 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 > > 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