the message box

Scott Rossi scott at tactilemedia.com
Fri Aug 19 20:09:53 EDT 2005


Recently, Jon  wrote:

> "msg is a reserved word indicating... the message box :) try to use a
> different name for your var and all should be fine."
> 
> Given that, in this particular situation, the IDE is going to ignore my
> use of "msg" as a parameter variable name, would it make any sense for
> the compiler to flag this as a likely problem?

I'm not sure you expect the IDE to *know* that you didn't intend call the
message box versus making a script error.  Sure, the context could be gauged
to some extent, but perhaps you *did* intend to call the message box and
simply made a contextual script error in the remainder of your code.

Chalk it up to a learning experience.  In much the same way that one has to
learn how to use "alert" in Javascript and "trace" in ActionScript to get
the same result as "answer" in X-talk.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com




More information about the use-livecode mailing list