How to compile in earlier versions using new keywords?
J. Landman Gay
jacque at hyperactivesw.com
Sun Apr 10 11:54:46 EDT 2016
Clever. :-) So it isn't a bug, it's a feature, for real.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 9, 2016 4:54:16 PM Monte Goulding <monte at appisle.net> 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
>
>> On 9 Apr 2016, at 11:11 PM, -hh <hh at livecode.org> 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:
>> http://runtime-revolution.278305.n4.nabble.com/How-to-compile-in-earlier-versions-using-new-keywords-tp4703270.html
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list