Re: Setting conditional breakpoints

2019-06-21 Thread Tom Glod via use-livecode
oh you can open up the engine to do other handlers by using "in time" I use it all the time..I have a message checking hotkeys clipboard changes and it works beautifully. on CheckIfVisible if the visible of defaultstack = true then send "CheckIfVisible" to defaultstack in 100 millisecond

Re: Setting conditional breakpoints

2019-06-21 Thread J. Landman Gay via use-livecode
Set a breakpoint, right click it, choose condition, and fill out the dialog. That's how I usually do it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On June 21, 2019 5:34:30 PM Bob Sneidar via use-livecode wrote: In the breakpoints

Re: Filter an array by content

2019-06-21 Thread J. Landman Gay via use-livecode
Mark Talluto's bug is exactly what I see. It may be related to a certain type of scripting, or a particular sequence of commands. I crashed several times in a row within a minute of a restart, so maybe the handler I was debugging was to blame. -- Jacqueline Landman Gay | jac...@hyperactivesw.co

Re: Setting conditional breakpoints

2019-06-21 Thread Bob Sneidar via use-livecode
That would be true if the engine was multithreaded. As it is, I am trying to find the line of script that is changing the property, and until the script terminates, no other script can run. Bob S > On Jun 21, 2019, at 15:56 , Tom Glod via use-livecode > wrote: > > well it can be done just

Re: Setting conditional breakpoints

2019-06-21 Thread Bob Sneidar via use-livecode
https://quality.livecode.com/show_bug.cgi?id=22203 > On Jun 21, 2019, at 15:46 , Bob Sneidar via use-livecode > wrote: > > OK looks like setting a breakpoint on a property change like the visible of a > stack can't be done. Might be a nice addition though. Let's say you have a > custom proper

Re: Setting conditional breakpoints

2019-06-21 Thread Tom Glod via use-livecode
well it can be done just have a handler that checks the condition every x millisecondsif true ...breakpoint..if falseresend message. On Fri, Jun 21, 2019 at 6:46 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > OK looks like setting a breakpoint on a property

Re: Setting conditional breakpoints

2019-06-21 Thread Bob Sneidar via use-livecode
OK looks like setting a breakpoint on a property change like the visible of a stack can't be done. Might be a nice addition though. Let's say you have a custom property that keeps getting corrupted (by which I mean it contains bad data) and you want to catch it in the act. Wouldn't it be nice to

Re: Setting conditional breakpoints

2019-06-21 Thread Bob Sneidar via use-livecode
In the breakpoints tab of the script editor, if you right click the lower pane, you can create conditional breakpoints. For instance if the value of a variable is something. I have never gotten them to work, and I find I am needing this more and more. Bob S > On Jun 21, 2019, at 15:26 , dunb

Re: Filter an array by content

2019-06-21 Thread Bob Sneidar via use-livecode
I am using V9.0.5 rc1 and I am not having any of these kinds of debugging crashes. I rarely step over though. Almost always I step into or out of. (I think I have that right.) Bob S > On Jun 21, 2019, at 14:33 , J. Landman Gay via use-livecode > wrote: > > On 6/21/19 2:48 PM, Alex Tweedly v

Re: Setting conditional breakpoints

2019-06-21 Thread dunbarx--- via use-livecode
Not sure what you could mean. on mouseUp  if the mouseLoc is within the rect of btn 3 then breakPoint   if the visible  of btn 3 then breakPoint   if the... Surely I am missing this. Craig -Original Message- From: Bob Sneidar via use-livecode To: How to use LiveCode Cc: Bob Sneidar S

Re: Filter an array by content

2019-06-21 Thread Mark Talluto via use-livecode
On Jun 21, 2019, at 2:33 PM, J. Landman Gay via use-livecode wrote: > > I see that all the time. If you step over, the dot location fixes itself at > least here. Until the crash, anyway. It doesn't crash right away, it seems to > be a cumulative thing, so you get a few chances before everythin

Setting conditional breakpoints

2019-06-21 Thread Bob Sneidar via use-livecode
Hi all. How do I set a conditional breakpoint based upon a property? I tried using the visible of stack "Forms Generator" is true, but I cannot enable the breakpoint and it says there is no condition, even though there it is! Bob S ___ use-livecode

Re: Filter an array by content

2019-06-21 Thread J. Landman Gay via use-livecode
On 6/21/19 2:48 PM, Alex Tweedly via use-livecode wrote: On 21/06/2019 19:38, J. Landman Gay via use-livecode wrote: My only excuse is that I've been avoiding stepping through the debugger because LC has been crashing when I do that. I've sent in many crash logs but it's only recently I've dis

Re: Filter an array by content

2019-06-21 Thread Bob Sneidar via use-livecode
Yes it is in memory, but it makes me think there might be a use case for allowing the creation of a file based database. I'll update it and repost on the list. Bob S > On Jun 21, 2019, at 12:57 , Tom Glod via use-livecode > wrote: > > very good thanks for elaborating Bob...it makes sen

Re: Filter an array by content

2019-06-21 Thread Tom Glod via use-livecode
very good thanks for elaborating Bob...it makes sense that there are use cases where the library really kicks it.. esp since its an in memory database (assuming). Its a good idea, making me rethink a couple of things. On Fri, Jun 21, 2019 at 12:06 PM Alex Tweedly via use-livecode < use-li

Re: Filter an array by content

2019-06-21 Thread Alex Tweedly via use-livecode
On 21/06/2019 19:38, J. Landman Gay via use-livecode wrote: My only excuse is that I've been avoiding stepping through the debugger because LC has been crashing when I do that. I've sent in many crash logs but it's only recently I've discovered it happens only with Step Over. It's hard to bel

Re: Help with drawing in LiveCode...

2019-06-21 Thread Paul Dupuis via use-livecode
Posted on forums at http://forums.livecode.com/viewtopic.php?f=8&t=32779 On 6/21/2019 11:01 AM, dunbarx--- via use-livecode wrote: Again, my drawing gadget creates, sizes, places and dimensions graphics, simulating a CAD drawing. You are still focused on tool switching and control selecting. Th

Re: Filter an array by content

2019-06-21 Thread J. Landman Gay via use-livecode
Found the problem. My script local was being emptied for some reason, so there was nothing to filter. After repopulating all data it worked. My only excuse is that I've been avoiding stepping through the debugger because LC has been crashing when I do that. I've sent in many crash logs but it'

Re: Filter an array by content

2019-06-21 Thread Alex Tweedly via use-livecode
Hi Bob, It sounds like your library is something I could benefit from :-) I know it's been mentioned on the list before, but I've lost track of where to get it from, and  a quick search didn't turn anything up. Could you please send a reminder (either to the list or direct to me if you prefer

Re: Hidden Windows keep re-showing

2019-06-21 Thread Bob Sneidar via use-livecode
I think I did that too. That is probably what fixed it. Bob S > On Jun 21, 2019, at 08:24 , Ralph DiMola via use-livecode > wrote: > > I've fixed it by clearing all breakpoints. Maybe there's common thread... > > Ralph DiMola ___ use-livecode ma

RE: Hidden Windows keep re-showing

2019-06-21 Thread Ralph DiMola via use-livecode
I've fixed it by clearing all breakpoints. Maybe there's common thread... Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent:

Re: Hidden Windows keep re-showing

2019-06-21 Thread Bob Sneidar via use-livecode
NVM I think I found it. For some reason I was unable to trace because neither soft or hard breakpoints were causing the code execution to pause! Even after a reboot. What fixed it (I think) is turning off debugging and then turning it back on. I think I remember someone else having this issue.

Re: iOS First App

2019-06-21 Thread Marty Knapp via use-livecode
Thanks Ralph. Marty > On Jun 20, 2019, at 6:23 PM, Ralph DiMola via use-livecode > wrote: > > 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

Re: Help with drawing in LiveCode...

2019-06-21 Thread dunbarx--- via use-livecode
Again, my drawing gadget creates, sizes, places and dimensions graphics, simulating a CAD drawing. You are still focused on tool switching and control selecting. That is fine, but is that the main and only issue for you? We can work on that, the goal being that you modify the current behavior of

Re: Filter an array by content

2019-06-21 Thread Bob Sneidar via use-livecode
Hi Tom. So the little benchmarking I did originally showed that my method was a little longer, as I still have to iterate once through the array to populate the database. Where it really shines is that you can do complex queries, as well as multiple column sorts before converting back to an ar

Re: Help with drawing in LiveCode...

2019-06-21 Thread hh via use-livecode
http://forums.livecode.com/viewtopic.php?p=139080#p139080 > > hh wrote: > > Here is a very simple drawing stack made once for testing the > > HTML5 standalone builder. > > > > http://hyperhh.de/html5/krikelKrakel2a-8.0.2X.html > > > Paul D. wrote: > That could be a helpful example. Thank you, but

Re: Filter an array by content

2019-06-21 Thread Dar Scott Consulting via use-livecode
I wonder whether explicitly specifying "wildcard pattern" would fix this. (I misread your query as referring to arrays with numeric elements, not arrays with numeric keys. Thus, my fascination with the new "where" where one can use "each > 22.2". Even with your use, "where" might be interesting.

Re: Help with drawing in LiveCode...

2019-06-21 Thread Paul Dupuis via use-livecode
On 6/20/2019 11:34 PM, dunbarx--- via use-livecode wrote: 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

Re: Help with drawing in LiveCode...

2019-06-21 Thread Paul Dupuis via use-livecode
On 6/21/2019 4:54 AM, hh via use-livecode wrote: Here is a very simple drawing stack made once for testing the HTML5 standalone builder. http://hyperhh.de/html5/krikelKrakel2a-8.0.2X.html That could be a helpful example. Thank you, but how do I download the actual stack? ___

Re: ImageStatistics_v160

2019-06-21 Thread hh via use-livecode
In case you downloaded v160: [Version 160 had an error in the javascript for listing the (R,G,B)-triplets (was counting some green for red)] So please update! Download "ImageStatistics_v165" from "Sample Stacks" or using http://livecodeshare.runrev.com/stack/882/ __

Re: Filter an array by content

2019-06-21 Thread Niggemann, Bernd via use-livecode
Am 21.06.2019 um 09:01 schrieb use-livecode-requ...@lists.runrev.com: From: "J. Landman Gay" I spoke too soon. When I tested, I hard-coded a value as the filter string. But when I use a variable, it fails as it did before. The elements of the array

Re: Help with drawing in LiveCode...

2019-06-21 Thread hh via use-livecode
Here is a very simple drawing stack made once for testing the HTML5 standalone builder. http://hyperhh.de/html5/krikelKrakel2a-8.0.2X.html > Paul D. wrote: > ... need a sample drawing stack ... > Not a paint stack, but one that uses graphic objects. _

Re: Filter an array by content

2019-06-21 Thread J. Landman Gay via use-livecode
I spoke too soon. When I tested, I hard-coded a value as the filter string. But when I use a variable, it fails as it did before. The elements of the array all start with a 4-character string followed by an underscore, for example: ER01_some text here My variable contains "ER01": put tVar