Thanks Mattias, PtrUInt works like a charm :) Richard
On 1 May 2014 15:20, Mattias Gaertner <nc-gaert...@netcologne.de> wrote: > On Thu, 1 May 2014 15:04:56 +0100 > Richard Mace <richard.m...@gmail.com> wrote: > > > Hi, > > I am getting the following error: Illegal type conversion: "TObject" to > > "LongInt" on the following code: > > > > > TFSGatewayType(Integer(cbo11TrunkType.Items.Objects[cbo11TrunkType.ItemIndex])) > > > > Is this because I am compiling under Linux 64bit or just Linux or just > > 64bit? Under Windows 32bit it compiles fine? > > 64bit. > TObject is a 64bit pointer under 64bit. > You can use > TFSGatewayType(PtrUInt(cb... > > Mattias > > -- > _______________________________________________ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus