Hi Marco and Norman,
I also converted a project made with the old framework (I am still working on it) to the new one. For almost 3 weeks I had a lot of headaches. Nevertheless I was very persistant and finally succeeded.
My most problems experienced was with the textfiles I had to load and save. My folderitems gave me the greatest problems. they are all properties. So I had them declared as :
name : f_Project
Type : FolderItem
When using the new framework I had to declare them as :
name : f_Project
Type : Xojo.IO.FolderItem
At the top of the sections which use the new framework I place :
Using Xojo.Core
Using Xojo.IO
In all places I put “Using Xojo.IO” I needed to use the new declaration “Xojo.IO.FolderItem”.
I do not know If I did the correct thing but it worked.
It is very easy to make mistakes when converting the old to the new framework. Many times I thought it was a bug, where finally I found out I misinterpreted the documentation.
I spend many hours watching Paul Lefebvre his webinars and read the documentation. When learning the new framework, I found the webinars about the “Framework” and “Text and Encodings” the most valuable one. I watched the latter one 4 times.
One thing definatelly lacking in the documentation is examples. The pieces of code in the documentation is not enough. But finally when all the bits and pieces came together I managed.
I like to ask what the best way is to learn the new framework and the best way to convert the old to the new framework.
At first I did not understand the reason why something which worked (strings) change into text. However for me the correct encoding (UTF-16) is very important and I cannot afford any change in between. So now mastering the “text” type, I benefit greatly from it. I read text (UTF-16), make a translation and then save it back as text (UTF-16) to a textfile. When checking with TopStyle 5, encoding is UTF-16.
In this way, Xojo let me do a translation which otherwise takes me days do in less than 4 hours. Another benefit for me, I can use the application as I want to use it because I developed it. Changes and adaptions are made within hours.
I create more of this kind of small applications and in my opinion it is here where Xojo shines bright. Xojo is very usefull in a wide spread of fields. When you can imagine it, you can create it with Xojo.
Wish you both a very nice day.
Chris