--- In [EMAIL PROTECTED], "swzoh" <[EMAIL PROTECTED]> wrote:
> --- 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.
Oops, I omitted the last part. You should add this in the last
sentence: "in an expression".
(BTW, I know eval() can't be a part of an expression)
------------------------ 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/