[Lazarus] How to get the version of .lpk?

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Nov 24 08:59:30 CET 2011


On Wed, 23 Nov 2011 23:49:17 -0200
silvioprog <silvioprog at gmail.com> wrote:

> Em 23 de novembro de 2011 23:21, silvioprog <silvioprog at gmail.com> escreveu:
> > Hi,
> >
> > Is there any function to get the version of a LPK package?
> >
> > The tag with the version in LPK: <Version Minor="2" Release="2" Build="2"/>
> >
> > Thx.
> 
> I tried this:
> 
> http://wiki.lazarus.freepascal.org/Extending_the_IDE#Search_a_package_with_a_name
> 
> But when I use the unit "PackageIntf", my IDE don't starts. The error:
> "List index (-1) out of bounds"

What means "use"?
You can not use it in the initialization section of a unit, because the
IDE was not created yet.

Mattias
 




More information about the Lazarus mailing list