> Why does a black line appear (permanent) in and around every object in
> my project when it is run standalone? Ie, launching it and not IRIS
> first.
Most likely the top and bottom colors of your stack haven't been set.
This should be done automatically when you choose "save as", but won't
be if you create mainstack some other way (e.g. by importing a
HyperCard or SuperCard stack). If the colors are not set, you get the
Home stack colors when run in the development environment, and black
(with a white background) when running without a Home stack.
To fix this, You can either set the colors of the stack individually
using the Color Chooser palette, or run the following in the Message
Box:
set the colors of stack "whatever" to the colors of stack "Home"
> The other is all the "global shadow" errors that creep up in the shell
> it was launched from,
This should occur even in the Home stack environment. The problem is
that you're using a term as a global in one handler, but as a local in
another. While not technically an error, this is almost certainly
going to show up as a bug in your scripts at some point. I strongly
recommend giving your globals distinctive names so that you can easily
distinguish them from locals (for example, add a "g" to the front of
all global names as in "gMyGlobal").
If you want to do a more thourough job of eliminating problems like
this, set the "explicitVariables" property to true (there's a button
in the Preferences dialog for this). This will flag all undeclared
variables as errors. You then have to use "local varname" or "global
varname" to create all the variables you use in a handler. Note that
since scripts are only parsed the first time an object is opened, for
best results you should exit MetaCard, then start it up fresh and set
the explicitVariables property before opening your stack.
> this in turn seems to periodically open the
> message box.
This shouldn't cause the MB to open. More likely, you've left a
debugging statement of the form "put something" in your stack. Using
"put" without a destination container puts the expression into the
Message Box, and then opens the Message Box.
Regards,
Scott
> --
> [---------------------------] Simon Lord
> [Important letters that.....] Database Engineer, CAE Electronics
> [contain no errors will.....] tel: (514) 341-2000 x3861
> [develop errors in the mail.] fax: (514) 340-5496
> [---------------------------] email: simonl@cae.ca
>
***************************************************************
Scott Raney raney@metacard.com http://www.metacard.com
Tcl and ksh: syntactic gymnastics
MetaCard: it does what you think