Hi.
--- In [EMAIL PROTECTED], "brucexs" <[EMAIL PROTECTED]> wrote:
> > pi.debug(cl.name(this))
> I am not clear on how the concept of this -- which is used in OO
> languages to identify the instance of an object being operated on
> within a method of that object -- works in a procedural "language"
> like PowerPro scripting language.
>
> I think you want a script which knows which bar it is being asked
to
> operate on, and the way to do that is to pass the name of the bar
as
> an argument when you call the script. Its similar to the use of
> handles in the note plugin.
Maybe event-based?
Wouldn't it be possible to have keywords (or cl-functions)
like "lastCreated", "lastShown" or "lastClicked" for
bars/commandlists? Not really necessary, I know, but would make some
things a little more convenient, I think.
Same for notes:
E.g. run the current line is now:
local nHan = win.handle("active")
do(note.getLine(nHan, note.getCaretLine(nHan)))
could be:
do(note.getLine(note.active, note.getCaretLine(note.active)))
with a keyword "note.active" that simply gives you the handle of the
active note. Too complicated maybe, don't know...
Mockey
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/