set the stackFileVersion

Klaus Major klaus at major-k.de
Mon Nov 27 12:23:47 EST 2006


Hi Mark,

> Klaus,
>
> Your solution will still cause a compile error when the stack is  
> opened or the script applied. Instead, do this:
> do "set the stackFileVersion to" && quote & "2.4" & quote

maybe I'm a bit slow, but why should this cause an error? :-)
I thought the "if...then" would prevent this script from being  
executed by engines < 2.7.

> Best,
>
> Mark
>
> --
> Economy-x-Talk
> Consultancy and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
>
> Get your store on-line within minutes with Salery Web Store  
> software. Download at http://www.salery.biz
> Op 27-nov-2006, om 16:58 heeft Klaus Major het volgende geschreven:
>
>> Hi Scott,
>>
>>> What is the preferred method for saying:
>>> set the stackFileVersion to "2.4"
>>> so that it doesn't cause an error in engine versions before 2.7 ?
>>
>> Try this, which will check the engine's version before setting the  
>> stackfileversion:
>>
>> ...
>> if char 1 to 3 of the version >= 2.7 then
>>    set the stackFileVersion to "2.4"
>> end if
>> ...
>>
>> Hope that helps.
>>
>>>  Scott Morrow

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list