--- Alan wrote:

> Stuff.

My apologies for the bad example�� I had oversimplified it to achieve
the same result as my original line of code.

What I am actually trying to do is have PowerPro display, in its Debug
window, the result of an expression that the user has entered. I
actually plan to use this in my ARB script as an included alias�� I
have included a working version in the latest release.

However, I was hoping to modify the code to use &() instead of Do()
since it is much more pleasant on the eye and (in my modest opinion)
easier to fathom.

In my script, we have what the user wishes to evaluate in Arg(1). And
so, this does what I expect it to:

String = Arg(1)
Do("Win.Debug", "(" ++ String ++ ")")

And therefore, by all rights, this next line should do exactly the
same thing unless I am greatly mistaken (of which I never ever deny
the possibility):

String = Arg(1)
Win.Debug(&(String))

You may wish to save the above lines into scripts, and then call them
as such: .ScriptName("1 + 2").

In this case, if we were to pass "1 + 2" as the argument:

Do("Win.Debug", "(" ++ String ++ ")")
would equate to
Do("Win.Debug", "(" ++ "1 + 2" ++ ")")
which in turn is
Do("Win.Debug", "(1 + 2)")
which in turn is
Win.Debug (1 + 2)

Win.Debug(&(String))
should equate to
Win.Debug(1 + 2)

However, it seems to equate to:
Win.Debug(1 + 2

The error message seems to be quite accurate actually, because I have
just tested feeding PowerPro a command with the missing final
parenthesis and I receive the exact same error.

For the record, &(1) is indeed a silly thing to ever look at, but it
is a perfectly valid expression. It simply evaluates to 1.

I come to this list with neither the intention nor the desire to boil
blood, however I know it's inevitable at times and I can offer no more
than my humblest apologies.

Alex Peters
ICQ# 37414292



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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