> Hi metacard developers,
>
> I heard it is not compatibile between version 1.4.x stack and version
> 2.x one. But I want to convert the stack which was developed on
> MetaCard 1.4.x into the one which can run on MetaCard 2.x.
>
> I try to do that and I have a problem.
> I can not hide field or show the hidden field.
> I think that a field object is no compatiblity, right?
There are some incompatibilities between 1.4 and 2.0/2.1, but nothing
this basic. Hiding and showing fields should work exactly the same
way in the two (three) versions.
> Did anyone convert the 1.4.x stack into version 2.x ?
> Please tell me any pointers or suggestions.
Most likely your problem is due to a script parsing error unrelated to
the hide/show command. As you probably know, MetaCard preprocesses
(compiles) the script of an object when that object is opened or a
message is sent to it. If there is a parsing error in any handler in
the script, *none* of the handlers in that script will work. In 2.0,
you had to watch MetaCard's stdout (usually the terminal window you
ran "mc" from) to find these errors. In 2.1, a "Script Errors" dialog
will open up any time a script parsing error occurs. All you have to
do is double click on the lines in the list field in the dialog to
open up the script that couldn't be compiled.
The most common scripting incompatibilities are trying to use
keywords/functions/properties as variables, not putting the word "the"
before a function or property name, and using unquoted literals. 2.0
and 2.1 are less forgiving of these problems than 1.4 was, and have
many new property and function names.
If none of these suggestions help, please post the handler that's not
working, and we'll play "spot the bug" with it.
Scott
> Thanks.
>
> -------------------------------------------
> Kenji OTA (ota@nttmcl.com)
> NTT Multimedia Communictions Laboratoies
> Phone:+1-415-833-3609 FAX:+1-415-326-1878
>
***************************************************************
Scott Raney raney@metacard.com http://www.metacard.com
Tcl and ksh: syntactic gymnastics
MetaCard: it does what you think