Re: Before and after Livecode

2015-07-19 Thread Dr. Hawkins
On Sat, Jul 18, 2015 at 4:45 PM, Robert Brenstein wrote: > Indeed. I wonder whether before/after could be used to populate > popup/pulldown lists in buttons dynamically (upon mouse click) or store > field selection before it looses focus. > > For saving valuesNot following the advantage here – it

Re: Before and after Livecode

2015-07-19 Thread David Bovill
Oh wow - it get's better. Say you have a handler - that processes some information from a request and then sends out a response. In my case the server bundles useful stuff into a requestArray, and after it has been routed a handler processes it and sends back a reply to the browser. The handler lo

Re: Before and after Livecode

2015-07-19 Thread Dave Kilroy
Ah that's clever! Thank you, I'll try that next time I need logging :) David Bovill-3 wrote > An example of how I used them to solve a problem that's bugged me for > years > - logging / debugging things like servers. You can write a server in a > tiny > bit of code, but to see what is going on /

Re: Before and after Livecode

2015-07-18 Thread Mark Wieder
On 07/18/2015 12:28 PM, David Bovill wrote: Now with before / after handlers - no logging code in the server - it's so clean and simple it is gorgeous. When I want logging I add the behavior which includes all the efore / after handlers that havve acess to all the data and just do the logging. W

Re: Before and after Livecode

2015-07-18 Thread Robert Brenstein
On 18.07.2015 at 20:28 Uhr +0100 David Bovill apparently wrote: Now with before / after handlers - no logging code in the server - it's so clean and simple it is gorgeous. When I want logging I add the behavior which includes all the efore / after handlers that havve acess to all the data and ju

Re: Before and after Livecode

2015-07-18 Thread David Bovill
An example of how I used them to solve a problem that's bugged me for years - logging / debugging things like servers. You can write a server in a tiny bit of code, but to see what is going on / wrong you want to log things at every step - or at least the important bits - and your code ends up with

Re: Before and after Livecode

2015-07-18 Thread Richmond
On 18/07/15 12:24, Dave Kilroy wrote: Richmond I think David is probably referring to the 'before' and 'after' control structures - as in: "before mouseUp answer "before mouse up received" end resizeStack" David, no sorry I've never used them (and yes they are interesting...) I'm sure you

Re: Before and after Livecode

2015-07-18 Thread Dave Kilroy
Richmond I think David is probably referring to the 'before' and 'after' control structures - as in: "before mouseUp answer "before mouse up received" end resizeStack" David, no sorry I've never used them (and yes they are interesting...) - "The difference between genius and stupidity i

Re: Before and after Livecode

2015-07-18 Thread Richmond
On 18/07/15 09:47, David Bovill wrote: Has anyone been using the "before" and "after" handlers in Livecode? If so what for? I'm very impressed with them. Together with chain-able behaviors I this we have some great opportunities for code collaboration without the usual name space collisions you