[Gambas-user] Converting a project to Gambas3 (was: Re:Gambas 3 rev 3489 bad form file version)
Ron
ron at ...1740...
Thu Jan 27 16:00:28 CET 2011
On 23-1-2011 18:39, Benoît Minisini wrote:
>>> Yes i have, but i copy parts of my project, im keeping a 2 and gambas 3
>>> version.
>>> Now i cant copy updated forms anymore and choose update.
>>>
>>> Can we just keep that menu optio too?
>>> ---
>>> Regards,
>>> Ron.
>> Now the conversion of forms is automatic as soon as you open a Gambas 2
>> project in the Gambas 3 IDE. So, if you open your old Gambas 2 project, all
>> your forms will be automatically converted.
>>
>> It's an interesting test for me, as you will be able to tell me how useful
>> is the automatic converter (it converts both forms and source code).
>>
>> As the source code converter is based on the remarks you published on your
>> web site, it *should* convert your entire project correctly.
>>
>> All the modifications introduced by the converter are annotated with a
>> comment in the source code, with the old line before the conversion, so
>> that you can check exactly what was done.
>>
>> Please do the test and tell me the result.
>>
>> Moreover, by doing that, you will be able to take the converted forms you
>> need to put them in your already partially converted Gambas 3 project!
> Note that not all incompatibilities are handled by the converter. See the
> "Porting from Gambas 2 to Gambas 3" page in the wiki for more information.
>
> Regards,
>
Benoit,
I opened a copy of my Gambas2 project with revision 3498, it converted
it automagically upon open.
Some first notes:
Displaying ide compile error messages in balloons works again!
But not for runtime errors, if you programs runs, and it stops with
runtime error on the line with error I cannot see which error occurred
on that line.
While converting, the shell output reported a missing icon I guess:
warning: unable to load 16/view-hidden
CSng isn't converted to CSingle (seems easy to do automatically)
A manual 'replace all' converted all 106 of them.
Same for CLng to CLong, a manual 'replace all' converted 6 of them.
BCOL: Didn't find/converted this line:
If Row Mod 2 Then gvPhoneCalls.Data.BackColor = Color.Background
Will try/run my program some more and let you know.
Regards,
Ron_2nd.
More information about the User
mailing list