How to compile in earlier versions using new keywords?

Earthednet-wp prothero at
Sat Apr 9 09:50:02 EDT 2016

Perhaps there is a way to have a text field that holds the appropriate script for the version, then you can set the script of btn xyz to fld "best script" on startup.

William Prothero

> On Apr 9, 2016, at 6:11 AM, -hh <hh at> wrote:
> Is there a way to *compile* the following script in LC versions before 7?
> on mouseUp
>  if char 1 of the version > 6 then
>     put trueword 1 of fld "IN" into fld "OUT"
>  else put word 1 of fld "IN" into fld "OUT"
> end mouseUp
> The use of the try structure doesn't help, the script doesn't even
> *compile*. The same with "segment" and other new terms of LC 7/8.
> More generaly, is there a way to "hide" some script blocks so that 
> the compilation in all earlier versions handles the block as comment? 
> --
> View this message in context:
> Sent from the Revolution - User mailing list archive at
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list