--- In [EMAIL PROTECTED], Alex Peters <[EMAIL PROTECTED]> wrote:
> --- swzoh wrote:
>
> > As I indicated already, use quote ", e.g. "&(expr)",
> > if you really want to use &() in expressions.
>
> The use of double quotes here would be inappropriate, as this would
> result in:
>
> String = "1 + 2"
> Win.Debug("&(String)")
>
> This would display "1 + 2" in the Debug window and not "3".
Frankly, I don't get the point. If you just want to get "3",
not "1+2", why don't you assign already from the start as
string = 1 + 2 (not "1 + 2")
which is perfectly legal expression in any respect.
I know &(1) is a valid expression, but using &() without "
in an expression is not a good habit, IMHO.
> Just for the record, this works:
> Win.Debug(Eval(String))
That is kind of my point. eval("string") and &(string)
are not equivalent.
------------------------ 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/