Re: Compatibility between version 1.4.x and 2.x.

Kenji OTA (ota@nttlabs.com)
Tue, 11 Feb 1997 19:41:49 -0800

>> On Fri, 7 Feb 1997, Kenji OTA wrote:
>>
>> > 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.

When I open my stack, the following message is shown many times in
MetaCard's stdout.

MCScriptPoint: ERROR tried to backup thrice

And, when I click the button in which script "show" and "hide" commands
to some fields are executed, "Execution Error" window is poped-up and
it said "Show: Can't find object", etc.

But, the object must exists because I can see the contents of the
field by using "answer" command.

Now, I guess this problem is because that my stack was at first
developed on Macintosh HyperCard and ported.

If you have any suggestions, please tell me.

Thanks.

-------------------------------------------
Kenji OTA (ota@nttmcl.com)
NTT Multimedia Communictions Laboratoies
Phone:+1-415-833-3609 FAX:+1-415-326-1878