10.2 lib to 10.1

Doug Easterbrook doug at artsman.com
Sun Apr 10 01:36:43 UTC 2022


hi Andy.

be aware, as Alex says, that there are changes or new items in notation for  in10.2 and such that is not in 10.1.  The upgrade of library from 10.1 to 10.2 also changed the meaning of some properties (eg, drag/drop properties on fields is one that I know of).



so, you are not guaranteed to run and backporting may result in some side effects simply by changing the library version from 10.2 to 10.1



One of the changes in 10.2 json IMPORT (but not in 10.1) is the ability to ignore properties and notation that are not for that version.

is called ‘importTreatsUnknownPropertiesAsWarning’ as I recall


https://www.omnis.net/developers/resources/onlinedocs/Programming/02libsandclasses.html#export-import-json-preferences



the purpose for this is:
to have a more rigorous way of doing Continuous Integration (i.e,. automatic building of omnis libraries)… and 
being able to go back in versions without getting hurt — using JSON export (new version) and json import (old version).




Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug at artsman.com
http://www.artsman.com
Phone (403) 650-1978

> On April 9, 2022, at 12:59 PM, TBS <andyh at totallybrilliant.com> wrote:
> 
> Ah yes I dusted off the old ‘downgrade’ library and adjusted the byte value accordingly :)
> 
> Many thanks
> 
> Andy
> On Apr 9, 2022, 3:20 PM -0400, Mike Matthews - Omnis via omnisdev-en <omnisdev-en at lists.omnis-dev.com>, wrote:
>> Hello Andy,
>> 
>> A few things you can do:
>> 
>> 1 Remove all code folding
>> 
>> Do $libs.$makelist($ref.$name,low($ref.$pathname)) Returns lvLibsList
>> For lvLibsList.$line from 1 to lvLibsList.$linecount step 1
>> Do $libs.[lvLibsList.C1].$classes.$sendall($ref.$removecodefolding()) ## Remove Code folding from each library.
>> End For
>> 
>> 
>> 2 Change first bit of library down by 1
>> 
>> Do $libs.$makelist($ref.$name,low($ref.$pathname)) Returns lvLibsList
>> Calculate lvByte as '7' ## Converts Library Back from 10.2 so that it can be used with Studio 10.1
>> 
>> For lvLibsList.$line from 1 to lvLibsList.$linecount step 1
>> Calculate lvPath as lvLibsList.C2
>> WriteBinFile (lvPath,lvByte,0,1) Returns lvError ## This changes the first byte of the file so it can open in v10.1
>> 
>> 
>> If lvError<>1
>> OK message Alert (Sound bell) {Could not update file: [lvLibsList.C1] Operation Aborted!}
>> End If
>> 
>> 
>> End For
>> 
>> 
>> Mike Matthews
>> 
>> Lineal Software Solutions
>> Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
>> 
>> omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
>> 
>> www.lineal.co.uk<http://www.lineal.co.uk/>
>> 
>> www.sqlworks.co.uk<http://www.sqlworks.co/>
>> 
>> 
>> 
>> On 9 Apr 2022, at 17:23, TBS <andyh at totallybrilliant.com<mailto:andyh at totallybrilliant.com>> wrote:
>> 
>> Can anyone remind me of the process to downgrade a 10.2 lib to 10.1 ? Just spent a heap of time working on a 10.2 lib for a client still on 10.1 :)
>> 
>> Andy Hilton
>> Totally Brilliant Software Inc
>> Phone (US) : (863) 409 4870
>> Phone (UK) : 0207 193 8582
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at https://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at https://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list