Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!julius.cs.uiuc.edu!apple!jkc From: jkc@Apple.COM (John Kevin Calhoun) Newsgroups: comp.sys.mac.hypercard Subject: Re: Problems converting to HC2 Message-ID: <46144@apple.Apple.COM> Date: 30 Oct 90 20:22:00 GMT References: Organization: Apple Computer Inc., Cupertino, CA Lines: 36 In article anne@tasis.eecs.utas.edu.au (Anne Zanotti) writes: > >After converting Mews (a mail & news reader) from HC 1.2.5 to 2.0, I >encounter: > "Can't understand arguments to this keyword" >So I looked at the script for the offending button : > > on mouseup > send Next to this card > end mouseup > >[description of some experiments deleted] > >So, why does 'send Next to this card' no longer work in HyperCard 2? 'send Next to this card' no longer works because the word 'next' is a keyword in HyperTalk, and keywords can no longer be sent as messages. (I'll leave it to Dan Winkler to provide an explanation of why this is so, perhaps in his next book.) Here's the complete list of keywords: do, else, end, exit, function, global, if, next, on, pass, repeat, return, send, then. If you have handlers with any of these words as names, you won't able to invoke them in 2.0. Your stack will run fine under 2.0 if you change the name of the handler from 'next' to something that's not a keyword, such as 'doNext'. We're working on a complete list of the incompatibilities between 1.x HyperTalk and 2.0 HyperTalk and will post it widely when it's ready. Kevin Calhoun HyperCard Engineer Apple Computer, Inc.