Re: Can I find out what handler I am in?

2019-10-25 Thread Alain Vezina via use-livecode
I use to indicate where I am by answering something like "I'm entering in 
handler XYZ", "I exit handler XYZ"

Sometime I use answering to know what is in a special Variable, an so on.

I's simple, but it woks, especially when I use several handlers.

Alain Vezina
Logilangue

> Le 25 oct. 2019 à 14:57, Tom Glod via use-livecode 
>  a écrit :
> 
> its mostly for try routines so i'm using it like it
> 
> try
> something 
> catch TheError
> LogError TheError
> end try
> 
> in LogError handler is where i read the correct line and item in the
> executioncontexts.
> 
> 
> 
> 
> 
> 
> On Fri, Oct 25, 2019 at 2:47 PM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Item 2 of line -1 of the executionContexts
>> 
>>> On Oct 25, 2019, at 11:46 , Bob Sneidar 
>> wrote:
>>> 
>>> Correction Item 2
>>> 
 On Oct 25, 2019, at 11:46 , Bob Sneidar 
>> wrote:
 
 Item 3
 
 
> On Oct 25, 2019, at 11:39 , Tom Glod via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
> 
> Its for error handling ...I want my error handler to know which
>> handler the
> error was in.
 
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Office:226-706-9339
> Mobile:226-706-9793
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Tom Glod via use-livecode
its mostly for try routines so i'm using it like it

try
something 
catch TheError
LogError TheError
end try

in LogError handler is where i read the correct line and item in the
executioncontexts.






On Fri, Oct 25, 2019 at 2:47 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Item 2 of line -1 of the executionContexts
>
> > On Oct 25, 2019, at 11:46 , Bob Sneidar 
> wrote:
> >
> > Correction Item 2
> >
> >> On Oct 25, 2019, at 11:46 , Bob Sneidar 
> wrote:
> >>
> >> Item 3
> >>
> >>
> >>> On Oct 25, 2019, at 11:39 , Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> Its for error handling ...I want my error handler to know which
> handler the
> >>> error was in.
> >>
> >
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Bob Sneidar via use-livecode
Item 2 of line -1 of the executionContexts

> On Oct 25, 2019, at 11:46 , Bob Sneidar  wrote:
> 
> Correction Item 2
> 
>> On Oct 25, 2019, at 11:46 , Bob Sneidar  wrote:
>> 
>> Item 3
>> 
>> 
>>> On Oct 25, 2019, at 11:39 , Tom Glod via use-livecode 
>>>  wrote:
>>> 
>>> Its for error handling ...I want my error handler to know which handler the
>>> error was in.
>> 
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Kaveh Bazargan via use-livecode
So Tom, do you need

return item 2 of line -2 of the executioncontexts

to be in every possible handler?

On Fri, 25 Oct 2019 at 19:40, Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Its for error handling ...I want my error handler to know which handler the
> error was in.
>
> On Fri, Oct 25, 2019 at 2:37 PM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > executionContexts is way more useful.
> >
> > Bob S
> >
> >
> > > On Oct 25, 2019, at 11:14 , Mark Wieder via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > On 10/25/19 11:00 AM, Richard Gaskin via use-livecode wrote:
> > >> Tom Glod wrote:
> > >> > But is there a function that I can call inside a handler that will
> > >> > tell me the name of the handler?
> > >> I'm curious: what are you doing that needs this?
> > >
> > > Not Tom, but...
> > >
> > > I do this all the time when I need to print a debugging message to the
> > messagebox. Sometimes handlers abort before getting to important
> statements
> > and by placing these statements at various points I can tell whether or
> not
> > a handler got triggered.
> > >
> > > put param(0) & cr after msg
> > >
> > > --
> > > Mark Wieder
> > > ahsoftw...@gmail.com
> > >
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> --
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Office:226-706-9339
> Mobile:226-706-9793
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Bob Sneidar via use-livecode
Correction Item 2

> On Oct 25, 2019, at 11:46 , Bob Sneidar  wrote:
> 
> Item 3
> 
> 
>> On Oct 25, 2019, at 11:39 , Tom Glod via use-livecode 
>>  wrote:
>> 
>> Its for error handling ...I want my error handler to know which handler the
>> error was in.
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Bob Sneidar via use-livecode
Item 3


> On Oct 25, 2019, at 11:39 , Tom Glod via use-livecode 
>  wrote:
> 
> Its for error handling ...I want my error handler to know which handler the
> error was in.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Tom Glod via use-livecode
Its for error handling ...I want my error handler to know which handler the
error was in.

On Fri, Oct 25, 2019 at 2:37 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> executionContexts is way more useful.
>
> Bob S
>
>
> > On Oct 25, 2019, at 11:14 , Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > On 10/25/19 11:00 AM, Richard Gaskin via use-livecode wrote:
> >> Tom Glod wrote:
> >> > But is there a function that I can call inside a handler that will
> >> > tell me the name of the handler?
> >> I'm curious: what are you doing that needs this?
> >
> > Not Tom, but...
> >
> > I do this all the time when I need to print a debugging message to the
> messagebox. Sometimes handlers abort before getting to important statements
> and by placing these statements at various points I can tell whether or not
> a handler got triggered.
> >
> > put param(0) & cr after msg
> >
> > --
> > Mark Wieder
> > ahsoftw...@gmail.com
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Bob Sneidar via use-livecode
executionContexts is way more useful. 

Bob S


> On Oct 25, 2019, at 11:14 , Mark Wieder via use-livecode 
>  wrote:
> 
> On 10/25/19 11:00 AM, Richard Gaskin via use-livecode wrote:
>> Tom Glod wrote:
>> > But is there a function that I can call inside a handler that will
>> > tell me the name of the handler?
>> I'm curious: what are you doing that needs this?
> 
> Not Tom, but...
> 
> I do this all the time when I need to print a debugging message to the 
> messagebox. Sometimes handlers abort before getting to important statements 
> and by placing these statements at various points I can tell whether or not a 
> handler got triggered.
> 
> put param(0) & cr after msg
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Mark Wieder via use-livecode

On 10/25/19 11:00 AM, Richard Gaskin via use-livecode wrote:

Tom Glod wrote:

 > But is there a function that I can call inside a handler that will
 > tell me the name of the handler?

I'm curious: what are you doing that needs this?



Not Tom, but...

I do this all the time when I need to print a debugging message to the 
messagebox. Sometimes handlers abort before getting to important 
statements and by placing these statements at various points I can tell 
whether or not a handler got triggered.


put param(0) & cr after msg

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Richard Gaskin via use-livecode

Tom Glod wrote:

> But is there a function that I can call inside a handler that will
> tell me the name of the handler?

I'm curious: what are you doing that needs this?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread doc hawk via use-livecode

On Oct 25, 2019, at 10:32 AM, Tom Glod via use-livecode 
 wrote:
> 
> Phil.NICE! ...everything seems like a no brainer in hindsight.

That actually came up in litigation over the patent for the shaving cream can.

The challenger claimed that it was too obvious, and not patentable.

The judge ruled to the effect of, “It was only obvious *after* you saw it.  
That you spent $7M in your own unsuccessful attempt to make such a thing shows 
that it is not obvious!”


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Tom Glod via use-livecode
Phil.NICE! ...everything seems like a no brainer in hindsight.

On Fri, Oct 25, 2019 at 1:29 PM Phil Davis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Tom, param(0) contains the name of the handler you're in.
>
> on mouseUp
> put param(0)
> end mouseUp
>
> Would put into the message box:
>  mouseUp
>
>
> Phil Davis
>
>
> On 10/25/19 10:00 AM, Tom Glod via use-livecode wrote:
> > Hey you guys, I have searched high and low and I am pretty sure the
> answer
> > is no , but I wanted to make sure before I did a feature request and a
> > workaround.
> >
> > But is there a function that I can call inside a handler that will tell
> me
> > the name of the handler?
> >
> > Just like the params() tells me the parameters of the current handler?
> >
>
> --
> Phil Davis
> 503-307-4363
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Tom Glod via use-livecode
Awesome.. thank you gentlemen.

Wrote a function.

*function* WhatsMyHanderName

*return* item 2 of line -2 of the executioncontexts

*end* WhatsMyHanderName

On Fri, Oct 25, 2019 at 1:06 PM Peter Bogdanoff via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Have you looked at executionContexts?
>
> Peter
>
> > On Oct 25, 2019, at 1:00 PM, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hey you guys, I have searched high and low and I am pretty sure the
> answer
> > is no , but I wanted to make sure before I did a feature request and a
> > workaround.
> >
> > But is there a function that I can call inside a handler that will tell
> me
> > the name of the handler?
> >
> > Just like the params() tells me the parameters of the current handler?
> >
> > --
> > Tom Glod
> > Founder & Developer
> > MakeShyft R.D.A (www.makeshyft.com)
> > Office:226-706-9339
> > Mobile:226-706-9793
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Phil Davis via use-livecode

Tom, param(0) contains the name of the handler you're in.

on mouseUp
   put param(0)
end mouseUp

Would put into the message box:
    mouseUp


Phil Davis


On 10/25/19 10:00 AM, Tom Glod via use-livecode wrote:

Hey you guys, I have searched high and low and I am pretty sure the answer
is no , but I wanted to make sure before I did a feature request and a
workaround.

But is there a function that I can call inside a handler that will tell me
the name of the handler?

Just like the params() tells me the parameters of the current handler?



--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Bob Sneidar via use-livecode
executionContexts

Bob S


> On Oct 25, 2019, at 10:00 , Tom Glod via use-livecode 
>  wrote:
> 
> Hey you guys, I have searched high and low and I am pretty sure the answer
> is no , but I wanted to make sure before I did a feature request and a
> workaround.
> 
> But is there a function that I can call inside a handler that will tell me
> the name of the handler?
> 
> Just like the params() tells me the parameters of the current handler?
> 
> -- 
> Tom Glod


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can I find out what handler I am in?

2019-10-25 Thread Peter Bogdanoff via use-livecode
Have you looked at executionContexts?

Peter

> On Oct 25, 2019, at 1:00 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hey you guys, I have searched high and low and I am pretty sure the answer
> is no , but I wanted to make sure before I did a feature request and a
> workaround.
> 
> But is there a function that I can call inside a handler that will tell me
> the name of the handler?
> 
> Just like the params() tells me the parameters of the current handler?
> 
> -- 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Office:226-706-9339
> Mobile:226-706-9793
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Can I find out what handler I am in?

2019-10-25 Thread Tom Glod via use-livecode
Hey you guys, I have searched high and low and I am pretty sure the answer
is no , but I wanted to make sure before I did a feature request and a
workaround.

But is there a function that I can call inside a handler that will tell me
the name of the handler?

Just like the params() tells me the parameters of the current handler?

-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode