Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-02 Thread Geoff Canyon via use-livecode
I like that, changing it. Now available at https://github.com/gcanyon/alloffsets One thing I don't see how to do without significantly impacting performance is to return all offsets if there are overlapping strings. For example: allOffsets("aba","abababa") would return 1,5, when it might be

Re: Sorting datagrid column with a tricj?

2018-11-02 Thread Trevor DeVore via use-livecode
On Fri, Nov 2, 2018 at 5:16 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > > What I would like to see added to the datagrid is a handler that > intercepted the population of a field so what goes into the field can be > custom formatted. This comes up a lot. Dates and

Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-02 Thread Brian Milby via use-livecode
Here is something... probably needs some optimization function allOffsets2 D,S,pCase local dLength, C, R -- returns a comma-delimited list of the offsets of D in S set the caseSensitive to pCase is true set the itemDel to D put length(D) into dLength put 1 - dLength into C

Re: Sorting datagrid column with a tricj?

2018-11-02 Thread Bob Sneidar via use-livecode
Okay, looks like this is a no go. I read from one of the datagrid lessons in reference to populating the datagrid "by hand": Important: When using this technique properties like dgData, dgText, dgDataOfIndex, etc. will no longer return values. The data grid is just displaying records from

Re: Continual iOS Simulator Problems

2018-11-02 Thread Roger Guay via use-livecode
I’m sorry for not replying sooner, but yes, it was the simulator that was not working. I did as others suggested, open the simulator in Xcode and run from there with no problem. Thanks for your help! Roger > On Oct 31, 2018, at 10:46 AM, JJS via use-livecode > wrote: > > Does the emulator

Re: problem with mobileSetKeyboardType

2018-11-02 Thread Brian Milby via use-livecode
Are those commands being executed before the keyboard is displayed? Thanks, Brian On Nov 2, 2018, 4:49 PM -0500, Mike for GDC via use-livecode , wrote: > I have not been able to get the "mobileSetKeyboardType" command to work on > my android. I have tried various options, such as: > > > > on

Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-02 Thread Alex Tweedly via use-livecode
Oh dear - answering my own posts rarely a good sign :-) On 03/11/2018 02:10, Alex Tweedly via use-livecode wrote: On 03/11/2018 00:43, Geoff Canyon via use-livecode wrote: One thing I don't see how to do without significantly impacting performance is to return all offsets if there are

Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-02 Thread Alex Tweedly via use-livecode
On 03/11/2018 00:43, Geoff Canyon via use-livecode wrote: I like that, changing it. Now available at https://github.com/gcanyon/alloffsets One thing I don't see how to do without significantly impacting performance is to return all offsets if there are overlapping strings. For example:

Re: tree view hide key

2018-11-02 Thread Mike Kerner via use-livecode
what is the PR for this version? On Thu, Nov 1, 2018 at 7:29 PM Brian Milby via use-livecode < use-livecode@lists.runrev.com> wrote: > Well, testing any of the fixes would require you to download the widget and > build it as none of the 9.1 builds are out yet. > > I did have an idea about manual

Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-02 Thread Bob Sneidar via use-livecode
It probably should be named listOffset, like itemOffset or lineOffset. Bob S > On Nov 1, 2018, at 17:04 , Geoff Canyon via use-livecode > wrote: > > Nice! I *just* finished creating a github repository for it, and adding > support for multi-char search strings, much as you did. I was coming

Re: tree view hide key

2018-11-02 Thread Brian Milby via use-livecode
There are two PRs currently in progress. 6764 and 6770. Neither address the custom sort (just an idea at this point, have not gotten to the code point). Thanks, Brian On Nov 2, 2018, 7:58 AM -0500, Mike Kerner via use-livecode , wrote: > what is the PR for this version? > > On Thu, Nov 1, 2018

Re: Mysteries of Me

2018-11-02 Thread Sannyasin Brahmanathaswami via use-livecode
That make good sense I may use it some day. It would allow more handlers in a common back script/library that did the same thing (anything) when called from different modules (stacks) On 11/1/18 10:02 AM, Bob Sneidar via use-livecode wrote: > Well the big thing it deals with is ambiguity. I

Sorting datagrid column with a tricj?

2018-11-02 Thread Klaus major-k via use-livecode
Hi all, given a datagrid (table) with three columns C1 -> visible C2 -> visible C3 -> invisible column Is it possible to sort a datagrid by column C3, although the user has clicked the header of column C2. Know what I mean? If this is possible, any hints on how to do this are highly

Re: Sorting datagrid column with a tricj?

2018-11-02 Thread Klaus major-k via use-livecode
Hi all, > Am 02.11.2018 um 21:13 schrieb Klaus major-k via use-livecode > : > > Hi all, > > given a datagrid (table) with three columns > C1 -> visible > C2 -> visible > C3 -> invisible column > > Is it possible to sort a datagrid by column C3, although > the user has clicked the header of

Re: Sorting datagrid column with a tricj?

2018-11-02 Thread Klaus major-k via use-livecode
> Am 02.11.2018 um 21:27 schrieb Klaus major-k via use-livecode > : > > Hi all, > >> Am 02.11.2018 um 21:13 schrieb Klaus major-k via use-livecode >> : >> >> Hi all, >> >> given a datagrid (table) with three columns >> C1 -> visible >> C2 -> visible >> C3 -> invisible column >> >> Is it

Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-02 Thread Geoff Canyon via use-livecode
All of those return a single value; I wanted to convey the concept of returning multiple values. To me listOffset implies it does the same thing as itemOffset, since items come in a list. How about: offsets -- not my favorite because it's almost indistinguishable from offset offsetsOf -- seems a

Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-02 Thread Bob Sneidar via use-livecode
how about allOffsets? Bob S > On Nov 2, 2018, at 09:16 , Geoff Canyon via use-livecode > wrote: > > All of those return a single value; I wanted to convey the concept of > returning multiple values. To me listOffset implies it does the same thing > as itemOffset, since items come in a list.

Re: Sorting datagrid column with a tricj?

2018-11-02 Thread Bob Sneidar via use-livecode
There is no way I know of to have a datagrid sort by an invisible column and still show that it is sorted by a visible one. Every time the datagrid "redraws" it's going to update the appearance of the header to reflect the sort. If you want to force the sort when you populate the datagrid,

Re: Sorting datagrid column with a tricj?

2018-11-02 Thread Klaus major-k via use-livecode
Hi Bob, > Am 02.11.2018 um 22:14 schrieb Bob Sneidar via use-livecode > : > > There is no way I know of to have a datagrid sort by an invisible column and > still show that it is sorted by a visible one. Every time the datagrid > "redraws" it's going to update the appearance of the header to

Re: Sorting datagrid column with a tricj?

2018-11-02 Thread Bob Sneidar via use-livecode
In a table datagrid, can't you edit the column template so that you can control what goes into the field for that column? I think the underlying data will remain the same, but what goes into the field is what you put there. I suspect the datagrid will then sort by the underlying data, not the

problem with mobileSetKeyboardType

2018-11-02 Thread Mike for GDC via use-livecode
I have not been able to get the "mobileSetKeyboardType" command to work on my android. I have tried various options, such as: on openField if the environment is "mobile" then mobileSetKeyboardType "alphabet" end if end openField and on mouseUp if the environment is "mobile" then