set the stackFileVersion

Klaus Major klaus at major-k.de
Mon Nov 27 09:58:07 CST 2006


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