[Lazarus] Illegal typecast in Linux only

Juha Manninen juha.manninen62 at gmail.com
Thu May 1 16:23:39 CEST 2014


On Thursday, May 1, 2014, Richard Mace <richard.mace at 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]))
>

Typecast to Integer should be PtrInt. It works also on a 64-bit system.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140501/60f86121/attachment-0003.html>


More information about the Lazarus mailing list