Re: FindIndex question

2024-03-24 Thread Mike Kerner via use-livecode
just to sanitycheck myself, i opened 9.6.9, created a new stack, and added a dg to it. then i fired up the pb. expand the card, and you'll see the dg. there are two behaviors assigned to the dg. the first is button id 1005 of stack "revDataGridLibrary" which has, as its behavior, stack

Re: FindIndex question

2024-03-24 Thread Mike Kerner via use-livecode
it's in the behavior of the dg you can also go digging through the OSS repo, if you like. On Sun, Mar 24, 2024 at 5:23 PM Neville Smythe via use-livecode < use-livecode@lists.runrev.com> wrote: > > > On 25 Mar 2024, at 3:00 am,Mike Kerner wrote: > > > > i don't know if you dove into the code,

Re: FindIndex question

2024-03-24 Thread Neville Smythe via use-livecode
> On 25 Mar 2024, at 3:00 am,Mike Kerner wrote: > > i don't know if you dove into the code, but it's too early to think about > unpacking this, so here's the code: ... Thanks Mike While I was aware of the optional parameters feature of LC commands I have never used it I so was unfamiliar

Re: FindIndex question

2024-03-24 Thread Mike Kerner via use-livecode
i don't know if you dove into the code, but it's too early to think about unpacking this, so here's the code: *## pSearchA is array-valued index for accessing sDataArray* *## pSearchA[1] = key_1* *## pSearchA[2] = key_2* *command* FindIndex pKeyIndexA, pSearchString *--, ...* *-*

FindIndex question

2024-03-24 Thread Neville Smythe via use-livecode
I am using FindIndex on a dataGrid dispatch "FindIndex" to tDataGrid with pKey, pSearchingString and I can pass multiple pKey, pSearchingString pairs such as “col1",pSearchStr1,”col2”,pSearchStr2 as cited in the dictionary entry But there is also a rather cryptic note at the end of the