bad token: theID, iconNum, theVis, etc.
Richard Gaskin
ambassador at FourthWorld.com
Mon Mar 18 20:37:01 EST 2002
erik hansen wrote:
>
> --- Klaus Major <kmajor at metascape.org> wrote:
>
>>> bad token: theID, iconNum, theVis, etc. is
>> what comes up alot esp. when
> ExplicitVariables()
>> is true.
>>>
>>> these are close to "taken" words in MC, but
>> not exactly the same.
>>>
>>> is this just something you have to deal with
>> by naming your variables in German?
>>
>> not if you are really using german names for
>> the variables ;-)
>> Best from germanski
>
> i was being "ironisch". i meant the "made in
> Germany" as a solution.
>
> it seems that choosing ExplicitVariables() =
> false (so you can apply and exit) then turning
> off MC, then turning MC back on helps, sometimes.
ExplicitVars is a property, not a function. Any need to quit MC to have it
take effect is a bug I've not encountered before, and I turn mine on and off
all day.
ExplicitVars is useful for debugging, and in some cases can have a very
modest performance increase (but very slight and hardly noticeable with MC's
overall blinding speed). Everything you need to know about ExplicitVars is
well documented, provided you read the entry for it in the MetaTalk
Reference.
If you're getting words flagged as script errors, look 'em up in the
Reference. If they're there you have a keyword conflict -- just change the
name and you'll be fine. It's common to preface vars with things like "g"
for global vars to help such cases (it helps readability too -- see
<http://www.fourthworld.com/embassy/articles/ScriptStyle.html>).
If they're not in the reference and you still don't know why they're causing
script errors, quoting the full line here will be much more useful for being
able to help you than posting the word by itself.
--
Richard Gaskin
Fourth World Media Corporation
Custom Software and Web Development for All Major Platforms
Developer of WebMerge 1.9: Publish any Database on Any Site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
More information about the metacard
mailing list