[Lazarus] How to get the version of .lpk?
silvioprog
silvioprog at gmail.com
Thu Nov 24 10:47:55 CET 2011
2011/11/24 Mattias Gaertner <nc-gaertnma at netcologne.de>:
[...]
> What means "use"?
> You can not use it in the initialization section of a unit, because the
> IDE was not created yet.
>
> Mattias
Sorry, I saw now. :)
The PackageEditingInterface is instanciated by IDE.
I solved the problem with this function:
http://code.google.com/p/lazsolutions/source/browse/trunk/Core/LSPackageIntf.pas#31
In my Lazarus "0.9.30.2 FPC 2.4.4 i386-win32-win32", the
PackageEditingInterface.FindPackageWithName aways returns nil.
--
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
Facebook - <facebook.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
* Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================
More information about the Lazarus
mailing list