On Sun, Sep 11, 2011 at 5:27 PM, zryip theSlug wrote:
> On Sat, Sep 10, 2011 at 4:47 PM, Andre Garzia
> wrote:
>
> Hi Andre,
>
> > Is revavailablehandlers available on a standalone? (Just curious...)
>
> Not sure of the usage we could have with that, but
> revavailablehandlers not working in a st
Interesting -- I'd forgotten about the token keyword. It still doesn't
handle block comments though:
on mouseUp
/*this is a
on aCommentedCommand
comment*/
put token 1 to -1 of the script of me into tText
put empty into tMenuText
repeat for each line L in tText
Geoff,
Try this:
put token 1 to -1 of the script of tID into tText
put empty into tMenuText
repeat for each line L in tText
if word 1 of L is among the items of
"on,function,getprop,setprop,command,private"
then put L & cr after tMenuText
end repeat
--
Best regards,
Mark Schonewille
Econo
This doesn't work with block comments, but this is what I used in revNavigator:
put the script of tID into tText
put empty into tMenuText
repeat for each line L in tText
if word 1 of L is among the items of "on,function,getprop,setprop"
then put L & cr after tMenuText
end repeat
_
On Sat, Sep 10, 2011 at 4:47 PM, Andre Garzia wrote:
Hi Andre,
> Is revavailablehandlers available on a standalone? (Just curious...)
Not sure of the usage we could have with that, but
revavailablehandlers not working in a standalone.
Best regards,
--
-Zryip TheSlug- wish you the best! 8)
ht
Hey Zryip,
Is revavailablehandlers available on a standalone? (Just curious...)
Cheers
andre
On Sat, Sep 10, 2011 at 6:11 AM, zryip theSlug wrote:
> On Sat, Sep 10, 2011 at 1:50 AM, Chip Thomas
> wrote:
> >
> > Hey all, is there a way to get a list of handlers within a contr
On Sep 9, 2011, at 11:56 PM, Phil Davis wrote:
> Hi Peter,
>
> Actually the 'filter' command I described will only include the 'end'
> statements that start at char 1 of a line. Normally, only 'end '
> statements would be in that category. (I'm assuming the coder used a script
> editor like LC
On Sat, Sep 10, 2011 at 1:50 AM, Chip Thomas wrote:
>
> Hey all, is there a way to get a list of handlers within a control?
>
> Or see if a handler/function exists?
Hi Chip,
Try:
put the revavailablehandlers of myControl
Best regards,
--
-Zryip TheSlug- wish you the b
On 9/9/11 7:14 PM, Peter M. Brigham, MD wrote:
On Sep 9, 2011, at 8:33 PM, I wrote:
The filter with "end*" will pick up "end if" and "end repeat" and "end try" as
well.
-- first:
replace "end if" with empty in tList
replace "end repeat" with empty in tList
replace "end try" with empty in tList
-- if you like
put tList
Phil Davis
On 9/9/11 5:05 PM, Roger Eller wrote:
On Fri, Sep 9, 2011 at 7:50 PM, Chip Thomas wrote:
Hey all, is there a way to get a list of handlers within a control?
Or see if a handler/function exists?
Thanks!
put the script of into tHandList
filter tHa
On Sep 9, 2011, at 8:33 PM, I wrote:
> The filter with "end*" will pick up "end if" and "end repeat" and "end try"
> as well.
> -- first:
> replace "end if" with empty in tList
> replace "end repeat" with empty in tList
> replace "end try" with empty in tList
> -- then
> filter tList with "end*"
t; -- EVERY handler ends this way
> replace (cr & "end ") with cr in tList -- remove 'end' from each line
> sort lines of tList -- if you like
> put tList
>
>
> Phil Davis
>
>
> On 9/9/11 5:05 PM, Roger Eller wrote:
>>
at 7:50 PM, Chip Thomas wrote:
>
>> Hey all, is there a way to get a list of handlers within a control?
>>
>> Or see if a handler/function exists?
>>
>> Thanks!
>
>
> put the script of into tHandList
> filter tHandList with "*on" & space &a
Roger Eller wrote:
On Fri, Sep 9, 2011 at 7:50 PM, Chip Thomas wrote:
Hey all, is there a way to get a list of handlers within a control?
Or see if a handler/function exists?
Thanks!
put the script of into tHandList
filter tHandList with "*on"& space& "*" -- just
On Fri, Sep 9, 2011 at 7:50 PM, Chip Thomas wrote:
> Hey all, is there a way to get a list of handlers within a control?
>
> Or see if a handler/function exists?
>
> Thanks!
put the script of into tHandList
filter tHandList with "*on" & space & "*&quo
Hey all, is there a way to get a list of handlers within a control?
Or see if a handler/function exists?
Thanks!
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
16 matches
Mail list logo