set the stackFileVersion

Mark Schonewille m.schonewille at economy-x-talk.com
Mon Nov 27 11:13:56 EST 2006


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

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 the 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