I need to convert a lot of .DFM files to .lfm . Just the form files, not the entire project.
Is there a way to automate the process ?
Calling the lazarus conversion menu item via script could be a good option. Is it possible today?
Thank you.

Mailing lists / lazarus / 2013-05
6 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I need to convert a lot of .DFM files to .lfm . Just the form files, not the entire project.
Is there a way to automate the process ?
Calling the lazarus conversion menu item via script could be a good option. Is it possible today?
Thank you.
Daniel Gaspary wroteI need to convert a lot of .DFM files to .lfm . Just the form files, not the entire project.
There is only the conversion from binary .dfm to text .lfm for pure form files. Is that what you need?
If you convert a pascal unit then the form file is also converted. If they belong to a project, they will all be converted together with it.
You can already now select many files in the open dialog. Did you try it? Otherwise you must improve the UI yourself and maybe provide a patch.
Juha
Juha Manninen wroteThere is only the conversion from binary .dfm to text .lfm for pure form files. Is that what you need?
Yes.
You can already now select many files in the open dialog. Did you try it?
No. This solved my problem, thanks.
Otherwise you must improve the UI yourself and maybe provide a patch.
There room for improvement. The confirmation dialog after each file is converted is really annoying when the number of files is big.
Maybe a dialog where you can specify a different destination dir.
I will think about these and other ideas when I have some free time.
Thank you, Juha
Daniel Gaspary wroteThere room for improvement. The confirmation dialog after each file is converted is really annoying when the number of files is big.
This is true.
I have mostly tested project conversion and then I typically open one GUI logic must be changed.
Juha
There is the XDev Toolkit at http://wiki.freepascal.org/XDev_Toolkit which includes the commandline tool DfmToLfm. Maybe that helps you.
Michael.
On Sat, May 25, 2013 at 1:53 PM, Schindler Karl-Michael
There is the XDev Toolkit at
http://wiki.freepascal.org/XDev_Toolkit which includes the commandline tool DfmToLfm. Maybe that helps you.
I did solve my problem selecting multiple entries at the open file dialog.
But thank you, Michael.
Daniel