Re: Using handler local variables of caller

2012-05-03 Thread Dar Scott
Thanks, Ray! That is just what I wanted! I do need to come up with a growth plan for when a future version of LiveCode does break it. (And maybe by then I'll have my script filter working.) Dar On May 3, 2012, at 1:25 PM, Ken Ray wrote: > > On May 1, 2012, at 9:03 PM, Dar Scott wrote: >

Re: Using handler local variables of caller

2012-05-03 Thread Ken Ray
On May 1, 2012, at 9:03 PM, Dar Scott wrote: > Hi, Mark! > > You hit the nail on the head. > > You work with desktop externals, right? They don't have this limitation. > Since iOS externals do have the limitation, I'm not going to go that way. > > Here is a goofy solution: > > function dar

Re: Using handler local variables of caller

2012-05-01 Thread Dar Scott
Hi, Mark! You hit the nail on the head. You work with desktop externals, right? They don't have this limitation. Since iOS externals do have the limitation, I'm not going to go that way. Here is a goofy solution: function darzCommand get 123 return "put " & it & " into it" en

Re: Using handler local variables of caller

2012-05-01 Thread Mark Wieder
Dar- Tuesday, May 1, 2012, 5:14:42 PM, you wrote: > I want to make a few commands and functions that work like some built-in > functions. > For example, the built-in commands 'read' and 'ask...' both set > 'it'. If I make my own version of 'ask', I'd like for the command > to set 'it'. Settin

Re: Using handler local variables of caller

2012-05-01 Thread Peter Haworth
somewhere, like a custom property, can you tell us why > you do not want to simply use parameters in the first place? > > > > -Original Message- > From: Bob Sneidar > To: How to use LiveCode > Sent: Tue, May 1, 2012 6:59 pm > Subject: Re: Using handler local variab

Re: Using handler local variables of caller

2012-05-01 Thread Dar Scott
, can you tell us why you do not > want to simply use parameters in the first place? > > > -Original Message----- > From: Bob Sneidar > To: How to use LiveCode > Sent: Tue, May 1, 2012 6:59 pm > Subject: Re: Using handler local variables of caller > > > If t

Re: Using handler local variables of caller

2012-05-01 Thread dunbarx
s why you do not want to simply use parameters in the first place? -Original Message- From: Bob Sneidar To: How to use LiveCode Sent: Tue, May 1, 2012 6:59 pm Subject: Re: Using handler local variables of caller If the handlers are in the same script, can't you use script local

Re: Using handler local variables of caller

2012-05-01 Thread Dar Scott
Thanks, Bob and Peter! I didn't think there was a way, but I thought I'd ask. I have two goals. 1 I sometimes create commands that are like built-in commands that modify 'it'. It would be nice if mine can modify 'it' to simplify the code and make it easier for users to learn and for me to spe

Re: Using handler local variables of caller

2012-05-01 Thread Bob Sneidar
If the handlers are in the same script, can't you use script local variables? If they are in different scripts, then Peter's suggestion of using properties may be the way to go. Seems like a lot to avoid passing parameters though. Bob On May 1, 2012, at 3:11 PM, Dar Scott wrote: > I'd like a

Re: Using handler local variables of caller

2012-05-01 Thread Peter Haworth
Maybe custom properties? Pete lcSQL Software On Tue, May 1, 2012 at 3:11 PM, Dar Scott wrote: > I'd like a function to use some variables of the caller without them being > passed or being declared as globals. Is there a way to do that? > > Desktop externals can do tha

Using handler local variables of caller

2012-05-01 Thread Dar Scott
I'd like a function to use some variables of the caller without them being passed or being declared as globals. Is there a way to do that? Desktop externals can do that, but I don't see a way for a library in a function to do that. Dar ___ use-live