David T wrote:
>> Doesn't just:
>> note.getLine(nHan, note.getCaretLine(nHan))
>> also run it as a command?
[without wrapping it in do(...)]

Mockey wrote:
> No. This will just return a string.

Every statement must begin with a literal command,
not with an expression for a command.
For example:

window close calculator
;; result: closes the calculator

var1 = "window close calculator"
var1
;; result: Error. File not found var1

do(var1,"")
;; result: closes the calculator

That's one of the major purposes for the "do()" command.
It executes a non-literal expression which resolves to a command.

You already know the other major purpose for do()
which is to allow non-literal expressions as parameters,
for commands which expect literal params
when they are not wrapped in do()

var2 = calculator
do("window close",var2)



------------------------ 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/
 

Reply via email to