10.2 lib to 10.1
Mike Matthews - Omnis
omnis at lineal.co.uk
Sun Apr 10 08:42:30 UTC 2022
Don’t forget to add the removal of code folding. UK support put that feature in for me for doing just this process of downgrading.
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 20:59, TBS <andyh at totallybrilliant.com<mailto: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<mailto: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:omnis at lineal.co.uk><mailto:mike.matthews at lineal.co.uk>
www.lineal.co.uk<http://www.lineal.co.uk><http://www.lineal.co.uk/>
www.sqlworks.co.uk<http://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><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 :)
More information about the omnisdev-en
mailing list