Re: So many ways in XTalks

2008-07-24 Thread Scott Morrow
...is that a return in a function (or a command but that's more difficult to understand) stops the running handler and returns immediately a result disregarding next statements. A light bulb (if somewhat dim) just went on over my head... thanks. For most things, readability is better

Re: So many ways in XTalks

2008-07-24 Thread Eric Chatonet
Writing tutorials, I'm probably depraved :-) Or for other reasons... What I wanted to point out but it's possible I missed it ;-) is that a return in a function (or a command but that's more difficult to understand) stops the running handler and returns immediately a result disregarding ne

Re: So many ways in XTalks

2008-07-24 Thread J. Landman Gay
Eric Chatonet wrote: Dear Jacque, You are right (as Ken was in a recent post). But my goal is always readability and elegance: e.g. no break, no 'and' and no 'or': something understandable at first sight without racking one's brains... I always prefer it to concision even if I'm able to write p

Re: So many ways in XTalks

2008-07-24 Thread Eric Chatonet
Dear Jacque, You are right (as Ken was in a recent post). But my goal is always readability and elegance: e.g. no break, no 'and' and no 'or': something understandable at first sight without racking one's brains... I always prefer it to concision even if I'm able to write put CleanText(StripC

Re: So many ways in XTalks

2008-07-24 Thread J. Landman Gay
Eric Chatonet wrote: Bonjour à tous, Le 24 juil. 08 à 07:49, Terry Judd a écrit : In your card or stack script ON mouseDown pMouseBtnNum IF pMouseBtnNum = 3 THEN IF word 1 of the target = "field" THEN IF not(the locktext of the target) THEN popup btn "c

Re: So many ways in XTalks (was: Re: Contextual Menus)

2008-07-24 Thread william humphrey
I like that especially when I can understand it. Very often I copy someone's excellent code and just use it like a monkey... ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your su

Re: So many ways in XTalks (was: Re: Contextual Menus)

2008-07-24 Thread Ken Ray
> Rev allows many ways to script: Agreed! > Here is the same as the above using a function. > What is interesting is that a function returns a value immediately > when a condition matches and avoids using nested conditional > structures or long statements with and/or. > > on mouseDown pButton >

So many ways in XTalks (was: Re: Contextual Menus)

2008-07-24 Thread Eric Chatonet
Bonjour à tous, Le 24 juil. 08 à 07:49, Terry Judd a écrit : In your card or stack script ON mouseDown pMouseBtnNum IF pMouseBtnNum = 3 THEN IF word 1 of the target = "field" THEN IF not(the locktext of the target) THEN popup btn "contextualMenu"