Re: Filter an array by content

2019-06-20 Thread Tom Glod via use-livecode
A great question Jacque Helpful thread all around. I have a tendency to think that any operation i perform to convert an entire array into something else will take longer than to loop through the keys. I'm happy to be wrong ,and I imagine it depends on the number of items in the dataset. But

Re: Help with drawing in LiveCode...

2019-06-20 Thread dunbarx--- via use-livecode
I implemented a fairly complex drawing module to a stack we use all the time. It isn't CAD, but it looks like it, albeit rather less professional looking than, say, AutoCad or SoldWorks would produce. We send these drawings out daily to clients. They are based on data calculated within the

RE: iOS First App

2019-06-20 Thread Ralph DiMola via use-livecode
Hey Marty... 1) You can run up to 100 "test" devices without having to publish to the store. You will have to rebuild it once a year when your development certificate is renewed. 2) I gave to 50,000 foot overview of what you need to do to get an app up and running(iOS and Android) at this year's

Re: Help with drawing in LiveCode...

2019-06-20 Thread hh via use-livecode
One of my "early LC works (2014)" may be (partially) what you are looking for: Raspberry Pi stacks collection #30 = SmoothDraw4.livecode http://forums.livecode.com/viewtopic.php?p=104113#p104113 > Paul D. wrote: > Thank you, but I have realized what I need a tutorial or > - even better - a

Re: Help with drawing in LiveCode...

2019-06-20 Thread Paul Dupuis via use-livecode
On 6/20/2019 3:02 PM, dunbarxx via use-livecode wrote: Hi. Untested, but this is kluge time. Something like this in the card script, though I bet it can be made cleaner and more robust: on mouseLeave set the liveHandles of this cd to the name of the target select empty end mouseLeave

iOS First App

2019-06-20 Thread Marty Knapp via use-livecode
I'm thinking of diving into my first iOS app. I'd like to adapt my existing desktop LC-based customer database so I can take care of customers when I'm out and about. The iOS app would just be for me and NOT be distributed. The actual data is in a text file and resides in Dropbox. I do have an

Re: Filter an array by content

2019-06-20 Thread Monte Goulding via use-livecode
Hi Jacque, does the output also need to be a sequential numeric array? If so then no variant of the filter command will help. If not then can’t you `filter elements of theArray with “*foobar*”``? It would be a nice addition to filter elements to have `as sequence` or something so the result had

Re: Filter an array by content

2019-06-20 Thread Dar Scott Consulting via use-livecode
If LiveCode 9.5 is not applicable (since it is not released), then... If those numbers are codes taken from some small universe of codes, then maybe intersect will work: intersect affectedZipCodes with TreatedZipCodes into inspectionZipCodes But if you can go with 9.5, then maybe "where" will

Re: Filter an array by content

2019-06-20 Thread Dar Scott Consulting via use-livecode
I think the filtering of array items was introduced in 8.1, so combine and split might not be needed. However, unless pattern matching will do, one has to wait until 9.5 to use the "where" clause in "filter". > On Jun 20, 2019, at 3:37 PM, hh via use-livecode > wrote: > > Why not "combine

Re: Filter an array by content

2019-06-20 Thread Bob Sneidar via use-livecode
You would have to also sort. Also, the array might not be sorted after the split. Bob S > On Jun 20, 2019, at 14:37 , hh via use-livecode > wrote: > > Why not "combine array V > filter V > split V"? > >> JLG wrote: >> I need to filter a numeric array by the content of the keys, not by the

Re: Filter an array by content

2019-06-20 Thread hh via use-livecode
Why not "combine array V > filter V > split V"? > JLG wrote: > I need to filter a numeric array by the content of the keys, not by the > keys themselves. Is there a way to do that without looping through the > entire array and looking at each element?

Hidden Windows keep re-showing

2019-06-20 Thread Bob Sneidar via use-livecode
Hi all. I'm having fits here. Just before I open a stack modally, I hide another stack. But the hidden stack keeps re-showing itself! Is there an event I can trap for when a window is shown? I need to find what is doing it and I have already scoured and traced the code and attempted to step

Re: Filter an array by content

2019-06-20 Thread Bob Sneidar via use-livecode
This is the perfect scenario for my arrayToDB library. Convert array to sqLite DB, query the DB using SELECT * from WHERE ORDER BY CAST( AS decimal(10.2)) then convert the resulting cursor back to an array. Contact me offlist if interested. Bob S > On Jun 20, 2019, at 13:56 , J. Landman

Re: Filter an array by content

2019-06-20 Thread Dar Scott Consulting via use-livecode
In 9.5, perhaps, filter ... where will do it. > On Jun 20, 2019, at 2:56 PM, J. Landman Gay via use-livecode > wrote: > > I need to filter a numeric array by the content of the keys, not by the keys > themselves. Is there a way to do that without looping through the entire > array and

Filter an array by content

2019-06-20 Thread J. Landman Gay via use-livecode
I need to filter a numeric array by the content of the keys, not by the keys themselves. Is there a way to do that without looping through the entire array and looking at each element? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: Help with drawing in LiveCode...

2019-06-20 Thread dunbarxx via use-livecode
Hi. Untested, but this is kluge time. Something like this in the card script, though I bet it can be made cleaner and more robust: on mouseLeave set the liveHandles of this cd to the name of the target select empty end mouseLeave on mouseEnter do "select" && the liveHandles of this

Help with drawing in LiveCode...

2019-06-20 Thread Paul Dupuis via use-livecode
I have an old stack (built under LC 4.6.4) that has a component that does some simple drawing. There is a tool bar (some buttons and menus) and below that a drawing area (scrolling group) A mouseMove handler set the tool to the *pointer tool* when over the drawing area and back to the *browse

Re: ImageStatistics_v160

2019-06-20 Thread Dar Scott Consulting via use-livecode
I get it. I thought the "paper tape" table was a distribution of individual colors and didn't recognize the values as bin indicators. I changed the number of bins to 4 and can see the x^3. I get a little dense at times. Ah, and if I hold the pointer over the "paper tape", I see a nice summary.

Re: ImageStatistics_v160

2019-06-20 Thread hh via use-livecode
> I wrote: > You can also put the (R,G,B)-triplets into the x^3 bins (ranges combinations) > that > are given by dividing for each channel the 0-255 range into > x=2,4,8,16,32,64,128 bins. > Dar S. wrote: > I think I'm doing something wrong. When I check the Table checkbox, I get x*3 > values

OT: Coloring Book Contract

2019-06-20 Thread Sannyasin Brahmanathaswami via use-livecode
I have a big Hindu organization that wants to produce a coloring book. We are looking to put them in touch with someone who is willing in take art work and create an application, will also involve a printed version as well. (easy part) Years ago I tried with big enterprise system developer to

Re: ImageStatistics_v160

2019-06-20 Thread Dar Scott Consulting via use-livecode
I took a gander. I think I'm doing something wrong. When I check the Table checkbox, I get x*3 values not x^3 values. > On Jun 20, 2019, at 5:43 AM, hh via use-livecode > wrote: > > [Version 100 computes the marginal color value distribution for each channel > R/G/B > of an image and some

Re: ImageStatistics_v160

2019-06-20 Thread hh via use-livecode
Forgot the link, sorry: Download ImageStatistics_v160 from "Sample Stacks" or using http://livecodeshare.runrev.com/stack/882/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

ImageStatistics_v160

2019-06-20 Thread hh via use-livecode
[Version 100 computes the marginal color value distribution for each channel R/G/B of an image and some statistical parameters for each channel.] Version 160 now adds the distribution of the (R,G,B)-triplets: The frequencies of the used (R,G,B)-triplets are listed for that. By using Javascript