How to compile in earlier versions using new keywords?

Richard Gaskin ambassador at fourthworld.com
Mon Apr 11 16:18:16 EDT 2016


Monte Goulding wrote:

> One solution I have used for this is chained behaviors:
>
> on mouseUp
>    put GetWord(fld “IN”,1) into fld “OUT”
> end mouseUp
>
> — parent behavior won’t compile in LC 6
> function GetWord pText, pWord
>    return trueword pWord of pText
> end GetWord
>
> — grandparent behavior
> function GetWord pText, pWord
>    return word pWord of pText
> end GetWord

Clever solution, but wouldn't that throw an error when the uncompilable 
behavior is loaded?

I would be concerned if the engine ignores errors that prevent it from 
using a script.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list